:root {
  --bg-black: #05070d;
  --bg-dark: #0b1220;
  --navy: #101a30;
  --blue-deep: #14204a;
  --blue-mid: #1e3a8a;
  --blue-accent: #3b82f6;
  --blue-light: #60a5fa;
  --grey: #94a3b8;
  --grey-dark: #334155;
  --white: #f8fafc;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg-black);
  color: var(--white);
  line-height: 1.6;
}

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

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 6%;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--grey-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo-wrap { display: flex; align-items: center; gap: 0.6rem; }
.logo-img { height: 38px; width: auto; border-radius: 6px; }
.logo-text { font-weight: 700; font-size: 1.2rem; color: var(--white); }

nav a { margin-left: 2rem; font-weight: 500; color: var(--grey); }
nav a:hover { color: var(--blue-light); }

.cta-btn {
  background: var(--blue-mid);
  color: var(--white) !important;
  padding: 0.6rem 1.3rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
  border: none;
}
.cta-btn:hover { background: var(--blue-accent); }

/* Hero */
.hero {
  position: relative;
  text-align: center;
  padding: 6rem 6%;
  background-image: url('background.png');
  background-size: 80%;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,7,13,0.85), rgba(11,18,32,0.92));
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
  font-size: 2.6rem;
  max-width: 800px;
  margin: 0 auto 1rem;
  color: var(--white);
}
.hero p {
  max-width: 650px;
  margin: 0 auto 2rem;
  color: var(--grey);
  font-size: 1.1rem;
}
.hero .cta-btn { padding: 0.9rem 2rem; font-size: 1rem; }

/* Sections */
section { padding: 4rem 6%; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 0.5rem; color: var(--white); }
.section-sub { text-align: center; color: var(--grey); max-width: 600px; margin: 0 auto 3rem; }

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}
.service-card {
  border: 1px solid var(--grey-dark);
  border-radius: 12px;
  padding: 2rem;
  background: var(--navy);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(59,130,246,0.15);
  border-color: var(--blue-accent);
}
.service-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-deep);
  color: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { margin-bottom: 0.6rem; font-size: 1.15rem; color: var(--white); }
.service-card p { color: var(--grey); font-size: 0.95rem; }

/* Why Us */
.why-us { background: var(--bg-dark); border-radius: 16px; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.why-item { text-align: center; }
.why-item .num { font-size: 2rem; font-weight: 700; color: var(--blue-light); }
.why-item p { color: var(--grey); margin-top: 0.4rem; font-size: 0.95rem; }

/* Process */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.step {
  padding: 1.5rem;
  border-left: 3px solid var(--blue-accent);
  background: var(--navy);
}
.step span {
  display: inline-block;
  color: var(--blue-light);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.step h3 { color: var(--white); }
.step p { color: var(--grey); }

/* CTA Banner */
.cta-banner {
  background: var(--blue-deep);
  color: var(--white);
  text-align: center;
  border-radius: 16px;
  padding: 3.5rem 2rem;
  border: 1px solid var(--grey-dark);
}
.cta-banner h2 { font-size: 1.9rem; margin-bottom: 0.8rem; }
.cta-banner p { color: var(--grey); max-width: 500px; margin: 0 auto 1.8rem; }

/* Footer */
footer {
  background: var(--bg-dark);
  color: var(--grey);
  text-align: center;
  padding: 2rem 6%;
  font-size: 0.9rem;
  border-top: 1px solid var(--grey-dark);
}
footer a { color: var(--blue-light); }

@media (max-width: 640px) {
  nav { display: none; }
  .hero h1 { font-size: 2rem; }
}

/* CHAT MODAL — "Reach Out to Us" popup */

.chat-modal {
  position: fixed;
  inset: 0;
  background: rgba(5,7,13,0.97);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.chat-modal.active {
  display: flex;
}

.chat-modal-content {
  background: var(--navy);
  border: 1px solid var(--grey-dark);
  border-radius: 16px;
  padding: 1.5rem;
  width: 90vw;
  max-width: 480px;
  max-height: 85vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transition: max-width 0.25s ease;
}

.chat-modal-content.wide {
  max-width: 850px;
}

.calendar-frame-wrapper {
  width: 100%;
  height: 70vh;
  max-height: 600px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.calendar-frame-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.chat-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--grey);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
}
.chat-close-btn:hover { color: var(--white); }

.chat-step { display: none; }
.chat-step.active { display: block; }

.chat-step h2 {
  color: var(--white);
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}
.chat-step p {
  color: var(--grey);
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
}

.chat-step label {
  display: block;
  color: var(--grey);
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.chat-step input,
.chat-step textarea {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--grey-dark);
  color: var(--white);
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  margin-bottom: 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
}
.chat-step input:focus,
.chat-step textarea:focus {
  outline: none;
  border-color: var(--blue-accent);
}

.chat-submit-btn {
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  background: var(--blue-mid);
  color: var(--white);
  width: 100%;
}
.chat-submit-btn:hover { background: var(--blue-accent); }
