/* ==========================================================================
   Khushi & Rushabh Associates — Self-contained stylesheet (no CDN, no build)
   ========================================================================== */

:root {
  --navy: #0f2440;
  --navy-700: #16304f;
  --navy-900: #0a1a30;
  --teal: #4f8f96;
  --teal-400: #6ca5ab;
  --teal-500: #4f8f96;
  --teal-600: #3d7b82;
  --ice: #dde8ec;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --white: #ffffff;
  --red: #ef4444;
  --radius-lg: 1rem;
  --radius-xl: 0.75rem;
  --max-width: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  color: var(--navy);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .font-display {
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
::selection { background: var(--teal); color: #fff; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) {
  .container { padding: 0 2.5rem; }
}

.section { padding: 6rem 0; }
.section-alt { background: #eef4f6; }

.eyebrow {
  color: var(--teal-500);
  letter-spacing: 0.3em;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.section-title {
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.2;
}
@media (min-width: 640px) {
  .section-title { font-size: 3rem; }
}
.section-sub {
  font-size: 1.125rem;
  color: var(--slate-500);
  margin-top: 1.1rem;
}
.center { text-align: center; margin-left: auto; margin-right: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  border: none;
  transition: background-color 0.25s ease, transform 0.2s ease;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-700); }
.btn svg { width: 1rem; height: 1rem; }

/* ---------------- Navbar ---------------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid #f1f5f9;
  transition: box-shadow 0.25s ease;
}
.navbar.scrolled { box-shadow: 0 4px 16px rgba(15,36,64,0.08); }
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 1024px) { .nav-inner { padding: 0 2.5rem; } }

.logo {
  font-weight: 700;
  font-size: 1.25rem;
}
@media (min-width: 640px) { .logo { font-size: 1.5rem; } }

.nav-links {
  display: none;
  align-items: center;
  gap: 2.5rem;
  font-weight: 500;
}
.nav-links a { position: relative; padding-bottom: 4px; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--teal-500);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: none; }

.menu-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--navy);
}
.menu-toggle svg { width: 1.75rem; height: 1.75rem; }

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid #f1f5f9;
  background: #fff;
  transition: max-height 0.35s ease;
}
.mobile-menu.open { max-height: 420px; }
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem;
  font-weight: 500;
}
.mobile-menu-inner a {
  padding: 0.85rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.mobile-menu-inner .btn { margin-top: 0.75rem; text-align: center; justify-content: center; }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none; }
}

/* ---------------- Hero ---------------- */
.hero { padding-top: 5rem; position: relative; }
.hero-slider {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: linear-gradient(135deg, #dde8ec 0%, #dbeaf0 50%, #cfe0e6 100%);
}
@media (min-width: 640px) { .hero-slider { height: 600px; } }

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1s ease, transform 6s ease;
  pointer-events: none;
}
.slide.active { opacity: 1; transform: scale(1); pointer-events: auto; }

.slide-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}
.slide h1 {
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1.1;
  color: var(--navy);
}
@media (min-width: 640px) { .slide h1 { font-size: 3.75rem; } }
@media (min-width: 1024px) { .slide h1 { font-size: 4.5rem; } }
.slide h1 .accent { color: var(--teal-500); }
.slide .slide-sub {
  font-size: 1.125rem;
  color: var(--slate-500);
  margin-top: 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 640px) { .slide .slide-sub { font-size: 1.25rem; } }
.slide .btn { margin-top: 2.5rem; }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 25px rgba(15,36,64,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: var(--navy);
  z-index: 10;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.slider-arrow:hover { background: var(--navy); color: #fff; }
.slider-arrow svg { width: 1.25rem; height: 1.25rem; }
.slider-arrow.prev { left: 1rem; }
.slider-arrow.next { right: 1rem; }
@media (min-width: 640px) {
  .slider-arrow.prev { left: 2rem; }
  .slider-arrow.next { right: 2rem; }
}

.dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}
.dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
  border: none;
  transition: width 0.3s ease, background-color 0.3s ease;
}
.dot.active { background: var(--teal-500); width: 1.75rem; }

/* ---------------- Ticker ---------------- */
.ticker {
  background: var(--navy);
  border-top: 1px solid rgba(79,143,150,0.4);
  border-bottom: 1px solid rgba(79,143,150,0.4);
  overflow: hidden;
  padding: 1.25rem 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 22s linear infinite;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 1.125rem;
  white-space: nowrap;
}
.ticker-set { display: flex; align-items: center; }
.ticker-item { display: flex; align-items: center; margin: 0 1.5rem; }
.ticker-item .dotsep { margin: 0 1.5rem; color: var(--teal-400); }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------- Services ---------------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 4rem;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: 1fr 1fr 1fr; } }

.service-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(15,36,64,0.18);
  border-color: var(--teal-500);
}
.service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.service-num {
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--ice);
  line-height: 1;
}
.service-icon {
  width: 3rem; height: 3rem;
  border-radius: var(--radius-xl);
  background: #f1f5f9;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
}
.service-icon svg { width: 1.5rem; height: 1.5rem; }
.service-card h3 { font-weight: 700; font-size: 1.4rem; margin-bottom: 0.75rem; }
.service-card .desc { color: var(--teal-600); margin-bottom: 1.25rem; line-height: 1.6; }
.service-points { margin-bottom: 1.5rem; }
.service-points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.service-points svg { width: 1rem; height: 1rem; color: var(--teal-500); flex-shrink: 0; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.25s ease;
}
.card-link:hover { color: var(--teal-500); }
.card-link svg { width: 1rem; height: 1rem; }

/* ---------------- About / Stats / Values ---------------- */
.about-copy { max-width: 720px; }
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 3.5rem;
}
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(15,36,64,0.06);
}
.stat-value { font-weight: 800; font-size: 2.25rem; color: var(--teal-500); }
@media (min-width: 640px) { .stat-value { font-size: 3rem; } }
.stat-label { font-weight: 600; margin-top: 0.5rem; }

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3.5rem;
}
@media (min-width: 640px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }

.value-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(15,36,64,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -10px rgba(15,36,64,0.12); }
.value-icon {
  width: 4rem; height: 4rem;
  border-radius: var(--radius-xl);
  background: #f1f5f9;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--navy);
}
.value-icon svg { width: 1.75rem; height: 1.75rem; }
.value-card h4 { font-weight: 700; font-size: 1.15rem; margin-bottom: 0.75rem; }
.value-card p { font-size: 0.9rem; color: var(--slate-500); line-height: 1.6; }

/* ---------------- Contact ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 4rem;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-info {
  background: #eef4f6;
  border-radius: 1.25rem;
  padding: 2.5rem;
}
.contact-info h3 { font-weight: 700; font-size: 1.5rem; margin-bottom: 0.5rem; }
.contact-info > p { color: var(--slate-500); margin-bottom: 2rem; }

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-row-icon {
  width: 3rem; height: 3rem;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: 0 4px 10px rgba(15,36,64,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
}
.contact-row-icon svg { width: 1.25rem; height: 1.25rem; }
.contact-row-label { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.03em; }
.contact-row-value { color: var(--slate-500); margin-top: 0.25rem; }

.why-box {
  background: var(--navy);
  border-radius: 1.25rem;
  padding: 1.75rem;
  margin-top: 2.5rem;
  border-left: 4px solid var(--teal-500);
}
.why-box h4 { color: #fff; font-weight: 700; font-size: 1.125rem; margin-bottom: 1rem; }
.why-box li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #e2e8f0;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.why-box svg { width: 1rem; height: 1rem; color: var(--teal-400); flex-shrink: 0; }

.contact-form-col { display: flex; flex-direction: column; gap: 1.5rem; }

.auth-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 1.25rem;
  padding: 1.75rem 2rem;
  box-shadow: 0 4px 14px rgba(15,36,64,0.05);
}
.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--slate-200);
}
.auth-tab {
  background: none;
  border: none;
  padding: 0.5rem 0.25rem 0.85rem;
  margin-right: 1.25rem;
  font-weight: 600;
  color: var(--slate-500);
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.auth-tab.active { color: var(--navy); border-color: var(--teal-500); }
.auth-form .form-group { margin-bottom: 1rem; }
.auth-form .btn { width: 100%; justify-content: center; margin-top: 0.25rem; }
.loggedin-panel { text-align: center; padding: 0.5rem 0; }
.loggedin-panel p { margin-bottom: 1rem; color: var(--slate-500); }
.loggedin-panel .btn { width: 100%; justify-content: center; }

.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 1.25rem;
  padding: 2.5rem;
  box-shadow: 0 4px 14px rgba(15,36,64,0.05);
}
.form-group { margin-bottom: 1.5rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.required { color: var(--red); }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--slate-300);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--navy);
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
input::placeholder, textarea::placeholder { color: var(--slate-400); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(79,143,150,0.15);
}
textarea { resize: none; }
.form-status {
  color: var(--teal-600);
  font-weight: 500;
  margin-top: 1rem;
}
.hidden { display: none !important; }

/* ---------------- Footer ---------------- */
.footer { background: var(--navy); color: #cbd5e1; padding: 4rem 0 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand h3 { color: #fff; font-weight: 700; font-size: 1.5rem; margin-bottom: 0.75rem; }
.footer-tag { color: var(--teal-400); font-weight: 600; margin-bottom: 0.75rem; }
.footer-desc { color: var(--slate-400); font-size: 0.9rem; line-height: 1.6; }

.social-row { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.social-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.25s ease;
}
.social-icon:hover { background: var(--teal-500); }
.social-icon svg { width: 1rem; height: 1rem; fill: #fff; }

.footer h4 { color: #fff; font-weight: 600; margin-bottom: 1.25rem; }
.footer-links li { margin-bottom: 0.75rem; font-size: 0.9rem; }
.footer-links a:hover { color: var(--teal-400); }
.footer-contact li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; margin-bottom: 1rem; }
.footer-contact svg { width: 1rem; height: 1rem; color: var(--teal-400); flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--slate-400);
  text-align: center;
}
.footer-bottom .legal-links { display: flex; gap: 1.5rem; }
.footer-bottom .legal-links a:hover { color: var(--teal-400); }
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; text-align: left; }
}

/* ---------------- Reveal on scroll ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .slide, .dot, .ticker-track { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; }
}
