/* ============================================================
   HK Reach — Global Stylesheet
   Brand: Harikrishna Enterprise | thehkservices.in
   Colors: Primary Green #3AC85E | Dark Teal #1D4A5A
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  --green:        #3AC85E;
  --green-dark:   #2aab4d;
  --green-light:  #EDFDF3;
  --teal:         #1D4A5A;
  --teal-light:   #2a6070;
  --bg:           #F9FAFB;
  --surface:      #FFFFFF;
  --text:         #111827;
  --muted:        #6B7280;
  --border:       #E5E7EB;
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.13);
  --font:         'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --transition:   0.22s ease;
  --max-w:        1180px;
  --nav-h:        70px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }

/* ── Layout Utilities ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 80px 0; }
.section-alt { background: var(--surface); }
.section-teal { background: var(--teal); color: #fff; }
.section-green-tint { background: var(--green-light); }

/* ── Typography ────────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.2; color: var(--teal); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.3; color: var(--teal); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600; line-height: 1.4; color: var(--teal); }
h4 { font-size: 1.1rem; font-weight: 600; }
p { color: var(--muted); }
.text-center { text-align: center; }
.text-white { color: #fff !important; }
.text-white p, .text-white h2, .text-white h3 { color: #fff !important; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 620px; }
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-light);
  border-radius: 50px;
  padding: 4px 14px;
  margin-bottom: 16px;
}
.section-label.light {
  color: #fff;
  background: rgba(255,255,255,.15);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  min-height: 48px;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 18px rgba(58,200,94,.35);
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(58,200,94,.45);
}
.btn-outline {
  border: 2px solid var(--teal);
  color: var(--teal);
  background: transparent;
}
.btn-outline:hover {
  background: var(--teal);
  color: #fff;
  transform: translateY(-2px);
}
.btn-outline-white {
  border: 2px solid rgba(255,255,255,.7);
  color: #fff;
  background: transparent;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  transform: translateY(-2px);
}
.btn-sm { padding: 9px 20px; font-size: 0.9rem; min-height: 40px; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ── Navigation ────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo img { height: 38px; mix-blend-mode: multiply; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--teal);
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--green); }
.nav-cta { margin-left: 20px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 2.5px;
  background: var(--teal);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile Drawer */
.nav-drawer {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--surface);
  flex-direction: column;
  padding: 32px 24px;
  gap: 24px;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}
.nav-drawer a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--teal);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.nav-drawer.open { display: flex; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, var(--green-light) 0%, #fff 60%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-light);
  border: 1px solid var(--green);
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 50px;
  padding: 5px 14px;
  margin-bottom: 20px;
}
.hero-badge .dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100%{opacity:1; transform:scale(1)} 50%{opacity:.5; transform:scale(1.5)} }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 32px; }
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-mockup {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

/* ── Trust Strip ───────────────────────────────────────────── */
.trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.trust-items {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}
.trust-item .icon { font-size: 1.1rem; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green);
}
.card-icon {
  width: 52px; height: 52px;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
  flex-shrink: 0;
}

/* ── Feature Grid ──────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ── Section Header ────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { margin-bottom: 14px; }
.section-header .lead { margin: 0 auto; }

/* ── How It Works ──────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { text-align: center; }
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 6px 20px rgba(58,200,94,.3);
}

/* ── Code Preview ──────────────────────────────────────────── */
.code-block {
  background: #0d1117;
  border-radius: var(--radius-md);
  padding: 24px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.7;
  color: #e6edf3;
  box-shadow: var(--shadow-lg);
}
.code-tab-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid #30363d;
  padding-bottom: 12px;
}
.code-tab {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #8b949e;
  cursor: pointer;
  transition: all var(--transition);
}
.code-tab.active { background: var(--green); color: #fff; }
.code-content { display: none; }
.code-content.active { display: block; }
.code-comment { color: #8b949e; }
.code-key { color: #79c0ff; }
.code-val { color: #a5d6ff; }
.code-str { color: #a5f3a5; }

/* ── Pricing ───────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}
.pricing-card:hover { border-color: var(--green); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.pricing-card.featured {
  border-color: var(--green);
  background: linear-gradient(160deg, var(--green-light), #fff);
  box-shadow: 0 12px 40px rgba(58,200,94,.18);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  white-space: nowrap;
}
.price-amount { font-size: 2.8rem; font-weight: 800; color: var(--teal); line-height: 1; }
.price-amount span { font-size: 1.2rem; font-weight: 600; vertical-align: super; }
.price-period { font-size: 0.88rem; color: var(--muted); margin-bottom: 28px; }
.price-features { list-style: none; text-align: left; margin: 24px 0; display: flex; flex-direction: column; gap: 10px; }
.price-features li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--text); }
.price-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--teal);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
}
.faq-question::after { content: '+'; font-size: 1.4rem; font-weight: 400; color: var(--green); transition: transform var(--transition); }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: var(--bg);
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0 20px;
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 18px 20px; }

/* ── Testimonials ──────────────────────────────────────────── */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: 14px; left: 22px;
  font-size: 4rem;
  color: var(--green-light);
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-text { color: var(--text); font-style: italic; margin-bottom: 18px; padding-top: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.testimonial-name { font-weight: 600; font-size: 0.95rem; color: var(--teal); }
.testimonial-role { font-size: 0.82rem; color: var(--muted); }

/* ── Use Cases ─────────────────────────────────────────────── */
.usecase-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.usecase-card:hover { border-color: var(--green); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.usecase-icon { font-size: 2.2rem; flex-shrink: 0; }

/* ── CTA Banner ────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--teal) 0%, #0f2d38 100%);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  margin: 0 0 80px;
}
.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,.75); max-width: 520px; margin: 0 auto 32px; }

/* ── Contact Form ──────────────────────────────────────────── */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.9rem; font-weight: 600; color: var(--teal); }
.form-group input, .form-group textarea, .form-group select {
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition);
  width: 100%;
  min-height: 48px;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(58,200,94,.12);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ── Tables ────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 18px; text-align: left; font-size: 0.93rem; }
th { background: var(--teal); color: #fff; font-weight: 600; }
td { border-top: 1px solid var(--border); color: var(--text); }
tr:nth-child(even) td { background: var(--bg); }

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
}
.badge-green { background: var(--green-light); color: var(--green-dark); }
.badge-teal  { background: rgba(29,74,90,.08); color: var(--teal); }

/* ── WhatsApp Float Button ─────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: all var(--transition);
  cursor: pointer;
}
.wa-float:hover { transform: scale(1.12); box-shadow: 0 8px 30px rgba(37,211,102,.6); }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--teal);
  color: rgba(255,255,255,.8);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  height: 36px;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.92);
  padding: 6px 14px;
  border-radius: 10px;
  mix-blend-mode: normal;
}
.footer-desc { font-size: 0.9rem; line-height: 1.7; opacity: .8; }
.footer-col h4 { color: #fff; font-weight: 700; margin-bottom: 18px; font-size: 0.95rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,.7); transition: color var(--transition); }
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,.5);
}
.social-links { display: flex; gap: 14px; }
.social-links a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: white;
  text-decoration: none;
  transition: background var(--transition);
}
.social-links a:hover { background: var(--green); }

/* ── Page Hero (inner pages) ───────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--teal) 0%, #0f2d38 100%);
  padding: 80px 0 72px;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,.75); max-width: 580px; margin: 0 auto; font-size: 1.1rem; }

/* ── Reveal Animation ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 62px; }
  .section { padding: 56px 0; }
  .nav-links, .nav-cta { display: none !important; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { display: none; } /* show on md+ */
  .hero { padding: 56px 0 40px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-banner { padding: 40px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .btn { padding: 11px 22px; font-size: 0.95rem; }
  .btn-group { justify-content: center; }
  .container { padding: 0 16px; }
}

@media (min-width: 769px) {
  .hero-visual { display: flex; }
}
