/* ==========================================================================
   QASNILAB IT SOLUTIONS — Master Stylesheet
   Designed for High-Converting Local Business Lead Generation (Kanpur, UP)
   ========================================================================== */

:root {
  --ink: #0D0D0D;
  --paper: #FAFAF7;
  --orange: #FF5C1A;
  --orange-light: #FF7A40;
  --teal: #0A4D5C;
  --teal-mid: #0D6B80;
  --cream: #FFF5EE;
  --muted: #6B7280;
  --border: #E5E0D8;
  --white: #FFFFFF;
  --green: #22C55E;
  --green-dark: #16A34A;
  --dark-bg: #080E14;
  --dark-surface: #111A24;
  --dark-border: rgba(255, 255, 255, 0.1);
  --font-display: 'Syne', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 70px; /* Space for mobile sticky dock */
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

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

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

/* ==========================================================================
   Typography & Utility Classes
   ========================================================================== */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.text-teal { color: var(--teal); }
.text-muted { color: var(--muted); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-orange {
  background: rgba(255, 92, 26, 0.12);
  color: var(--orange);
  border: 1px solid rgba(255, 92, 26, 0.25);
}

.badge-teal {
  background: rgba(10, 77, 92, 0.1);
  color: var(--teal);
  border: 1px solid rgba(10, 77, 92, 0.2);
}

.badge-dark {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid var(--dark-border);
}

.section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 50px 0;
  }
}

.section-header {
  margin-bottom: 48px;
}

.section-title {
  font-size: 2.3rem;
  margin-top: 12px;
  color: var(--ink);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 680px;
  margin: 14px auto 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 92, 26, 0.25);
}
.btn-primary:hover {
  background: var(--orange-light);
  box-shadow: 0 6px 20px rgba(255, 92, 26, 0.35);
}

.btn-whatsapp {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.25);
}
.btn-whatsapp:hover {
  background: var(--green-dark);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--white);
  border-color: var(--ink);
}

.btn-call {
  background: var(--teal);
  color: #fff;
}
.btn-call:hover {
  background: var(--teal-mid);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1.05rem;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 250, 247, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--teal), var(--teal-mid));
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--orange);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 16px;
  }
  .nav-links.show {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .nav-cta .btn-consult {
    display: none;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.1rem;
  letter-spacing: -0.02em;
  margin: 18px 0;
  color: var(--ink);
}

.hero-content h1 span {
  color: var(--orange);
}

.hero-content p {
  font-size: 1.2rem;
  color: #4A5568;
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #4B5563;
  font-weight: 500;
}

.trust-item svg, .trust-item .icon {
  color: var(--green);
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-content h1 {
    font-size: 2.3rem;
  }
  .hero {
    padding: 40px 0;
  }
}

/* ==========================================================================
   Problem & Solution Grid
   ========================================================================== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.problem-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.problem-tag {
  color: #DC2626;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.problem-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.solution-box {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 0.92rem;
  color: var(--teal);
  font-weight: 500;
}

/* ==========================================================================
   Service Matrix & Cards
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange);
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  margin-bottom: 24px;
}

.service-features li {
  font-size: 0.88rem;
  color: #374151;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features li::before {
  content: "✓";
  color: var(--teal);
  font-weight: bold;
}

.service-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Why QasniLab & Local Trust
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.why-card .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 12px;
}

.why-card h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* ==========================================================================
   Lead Capture Form Component
   ========================================================================== */
.lead-form-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.lead-form-card.dark {
  background: var(--dark-surface);
  border-color: var(--dark-border);
  color: #fff;
}

.lead-form-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.lead-form-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #374151;
}

.lead-form-card.dark .form-group label {
  color: #E2E8F0;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(10, 77, 92, 0.12);
  background: #fff;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

textarea.form-control {
  min-height: 90px;
  resize: vertical;
}

.form-feedback {
  display: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 0.92rem;
}

.form-feedback.success {
  display: block;
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #86EFAC;
}

.form-feedback.error {
  display: block;
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
  transition: all 0.2s;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 22px;
  color: #4B5563;
  font-size: 0.98rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   Local Kanpur Hub & Areas
   ========================================================================== */
.areas-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

.area-pill {
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #374151;
}

/* ==========================================================================
   Consultation Modal (10s Exit/Dwell Intent)
   ========================================================================== */
.consult-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 20, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.consult-modal-backdrop.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.consult-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}

.consult-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #F3F4F6;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #4B5563;
}

/* ==========================================================================
   Mobile Sticky Action Dock & Floating Button
   ========================================================================== */
.mobile-action-dock {
  display: none;
}

@media (max-width: 768px) {
  .mobile-action-dock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    z-index: 999;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
  }
  .dock-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
  }
  .dock-btn.whatsapp {
    background: var(--green);
    color: #fff;
  }
  .dock-btn.call {
    background: var(--teal);
    color: #fff;
  }
}

.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
  transition: transform 0.25s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .floating-whatsapp {
    display: none; /* Replaced by bottom sticky dock */
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--dark-bg);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
  border-top: 1px solid var(--dark-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
