/* OnlineChalo.in — Design System */
/* Brand: Professional + Approachable | Primary: Blue #185FA5 | Accent: Green #1D9E75 */

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

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2C2C2A;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* === VARIABLES === */
:root {
  --primary: #185FA5;
  --primary-light: #E6F1FB;
  --primary-dark: #042C53;
  --accent: #1D9E75;
  --accent-light: #E1F5EE;
  --dark: #042C53;
  --neutral: #F1EFE8;
  --text: #2C2C2A;
  --text-secondary: #5F5E5A;
  --text-muted: #888780;
  --border: #D3D1C7;
  --white: #ffffff;
  --max-width: 1140px;
  --nav-height: 72px;
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--light { background: var(--neutral); }
.section--blue { background: var(--primary); color: var(--white); }
.section--dark { background: var(--dark); color: var(--white); }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: 2.5rem; letter-spacing: -0.5px; }
h2 { font-size: 2rem; letter-spacing: -0.3px; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

.section--blue h2,
.section--blue h3,
.section--blue p,
.section--dark h2,
.section--dark h3,
.section--dark p { color: var(--white); }

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 600px;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(211, 209, 199, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.nav__logo-online { color: var(--primary); }
.nav__logo-chalo { color: var(--accent); }
.nav__logo-in { color: var(--text-muted); font-weight: 400; font-size: 0.9rem; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}

.nav__link:hover { color: var(--primary); }

/* Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-trigger {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color 0.2s;
}

.nav__dropdown-trigger:hover { color: var(--primary); }

.nav__dropdown-trigger svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 0;
  min-width: 220px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s;
}

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown:hover .nav__dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav__dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.15s;
}

.nav__dropdown-menu a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.nav__cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}

.nav__cta:hover { background: #178A66; }

/* Mobile nav */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav__mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  padding: 24px;
  overflow-y: auto;
  z-index: 999;
}

.nav__mobile-menu.active { display: block; }

.nav__mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--neutral);
}

.nav__mobile-menu .nav__mobile-group-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 20px 0 8px;
  border-bottom: none;
}

.nav__mobile-menu .nav__cta {
  display: block;
  text-align: center;
  margin-top: 24px;
  padding: 14px;
  font-size: 1.1rem;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}
.btn--primary:hover { background: #178A66; transform: translateY(-1px); }

.btn--secondary {
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn--outline-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }

.btn--small { padding: 10px 20px; font-size: 0.9rem; }

.btn svg, .btn img { width: 20px; height: 20px; }

/* === HERO === */
.hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
  background: linear-gradient(135deg, #E6F1FB 0%, #E1F5EE 50%, #F1EFE8 100%);
  border-bottom: 1px solid rgba(24, 95, 165, 0.08);
}

.hero__content { max-width: 680px; }
.hero--centered .hero__content { margin: 0 auto; text-align: center; }
.hero--centered .hero__actions { justify-content: center; }

.hero h1 { margin-bottom: 20px; }

.hero__subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
}

.hero--centered .hero__subtitle { margin: 0 auto; }

.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* === CARDS === */
.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid rgba(211, 209, 199, 0.6);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.2s;
}

.card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 24px rgba(24, 95, 165, 0.08);
  transform: translateY(-2px);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
}

.card__icon--blue { background: var(--primary-light); color: var(--primary); }
.card__icon--green { background: var(--accent-light); color: var(--accent); }

.card h3 { margin-bottom: 8px; }

.card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.2s;
}

.card__link:hover { gap: 10px; }

/* === TRUST SIGNALS === */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.trust-item { text-align: center; }

.trust-item__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}

.trust-item h4 { margin-bottom: 4px; }
.trust-item p { font-size: 0.9rem; color: var(--text-secondary); }

/* === NICHE CALLOUTS === */
.niche-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.niche-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(211, 209, 199, 0.6);
  border-radius: 12px;
  transition: all 0.2s;
}

.niche-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 24px rgba(24, 95, 165, 0.06);
}

.niche-card__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.niche-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.niche-card p { font-size: 0.9rem; color: var(--text-secondary); }

/* === PORTFOLIO === */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(211, 209, 199, 0.6);
  transition: all 0.2s;
}

.portfolio-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 24px rgba(24, 95, 165, 0.08);
  transform: translateY(-2px);
}

.portfolio-card__image {
  width: 100%;
  height: 220px;
  background: var(--neutral);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  overflow: hidden;
}

.portfolio-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s;
}

.portfolio-card:hover .portfolio-card__image img {
  transform: scale(1.03);
}

.portfolio-card__content {
  padding: 20px;
}

.portfolio-card__tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 8px;
}

.portfolio-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.portfolio-card p { font-size: 0.85rem; color: var(--text-secondary); }

/* === PROCESS / STEPS === */
.steps {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step__number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 16px;
}

.step h4 { margin-bottom: 6px; }
.step p { font-size: 0.9rem; color: var(--text-secondary); }

.step::after {
  content: '';
  position: absolute;
  top: 22px;
  left: calc(50% + 30px);
  width: calc(100% - 60px);
  height: 2px;
  background: var(--border);
}

.step:last-child::after { display: none; }

/* === CTA BANNER === */
.cta-banner {
  background: var(--primary);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  color: var(--white);
}

.cta-banner h2 { color: var(--white); margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 24px; }

.cta-banner .btn--primary { background: var(--accent); }
.cta-banner .btn--primary:hover { background: #178A66; }

/* === FEATURE LIST (service pages) === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature__icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.feature h4 { margin-bottom: 4px; }
.feature p { font-size: 0.9rem; color: var(--text-secondary); }

/* === PRICING CARDS === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pricing-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

.pricing-card--featured {
  border-color: var(--primary);
  border-width: 2px;
  position: relative;
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 20px;
}

.pricing-card h3 { margin-bottom: 8px; }

.pricing-card__price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.pricing-card__period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pricing-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--neutral);
}

.pricing-card__features li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-card__features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

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

.faq-item {
  border-bottom: 1px solid var(--neutral);
  padding: 20px 0;
}

.faq-item__question {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
}

.faq-item__question svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  color: var(--text-muted);
  transition: transform 0.3s;
}

.faq-item.active .faq-item__question svg { transform: rotate(180deg); }

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-item__answer { max-height: 200px; }

.faq-item__answer p {
  padding-top: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === CONTACT FORM === */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* === FOOTER === */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand { max-width: 280px; }

.footer__logo {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer__brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
}

.footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer a {
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* === WHATSAPP FLOATING BUTTON === */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  z-index: 999;
  transition: transform 0.2s;
}

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

.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

/* === PAGE HEADERS (inner pages) === */
.page-header {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 60px;
  background: var(--primary-light);
}

.page-header h1 { font-size: 2.2rem; margin-bottom: 12px; }
.page-header p { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; }
.page-header .hero__actions { margin-top: 24px; }

/* === RESPONSIVE === */
@media (max-width: 992px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.7rem; }
  .card-grid--3, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid--4, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-wrap: wrap; }
  .step::after { display: none; }
  .step { flex: 0 0 calc(33.33% - 16px); }
}

@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 60px 0; }
  .hero { padding-top: calc(var(--nav-height) + 48px); padding-bottom: 48px; }
  .hero__subtitle { font-size: 1.05rem; }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .card-grid--2, .card-grid--3, .card-grid--4,
  .niche-grid, .feature-grid,
  .portfolio-grid, .pricing-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr !important; gap: 32px !important; }

  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .steps { flex-direction: column; }
  .step { flex: none; }

  .cta-banner { padding: 32px 24px; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }

  .page-header { padding-top: calc(var(--nav-height) + 40px); padding-bottom: 40px; }
  .page-header h1 { font-size: 1.75rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .container { padding: 0 16px; }
}
