/* ========== Base & Theme ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --ink: #0f2747;
  --brand: #ff6600;
  --blue: #1f7af2;
  --sky: #f0f4f8;
  --ring: rgba(15, 39, 71, 0.08);
  --shadow: 0 8px 24px rgba(15, 39, 71, 0.1);
  --radius: 14px;
  --muted: #6b7a90;
}
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
  background: #f7f9fc;
  color: var(--ink);
  line-height: 1.55;
}
a {
  color: var(--ink);
  text-decoration: none;
}
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 5%;
}

/* ========== Nav ========== */
nav {
  background: #fff;
  border-bottom: 1px solid var(--ring);
}
nav .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.3px;
}
.menu a {
  margin-left: 22px;
  font-weight: 600;
  opacity: 0.9;
}
.menu a:hover {
  opacity: 1;
}

/* ========== Hero ========== */
header.hero {
  background: linear-gradient(135deg, #0f2747, var(--brand));
  color: #fff;
}
.hero .grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
  padding: 64px 0;
}
.hero h1 {
  font-size: 40px;
  line-height: 1.12;
  margin-bottom: 12px;
}
.hero p.lead {
  font-size: 18px;
  opacity: 0.98;
  margin-bottom: 18px;
}
.btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 700;
}
.btn-blue {
  background: var(--blue);
  color: #fff;
  margin-right: 10px;
}
.btn-orange {
  background: var(--brand);
  color: #fff;
}
.hero small {
  display: block;
  margin-top: 10px;
  opacity: 0.95;
}

/* ========== Phone Simulation (Live Chat) ========== */
.phone-wrap {
  display: grid;
  gap: 18px;
}
.phone {
  position: relative;
  width: 340px;
  max-width: 100%;
  aspect-ratio: 9/18;
  margin-left: auto;
}
.phone svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
}
.screen {
  position: absolute;
  inset: 14px;
  top: 24px;
  bottom: 24px;
  border-radius: 22px;
  overflow: hidden;
}
.screen-inner {
  position: absolute;
  inset: 0;
  background: #0b1320;
}
.chat {
  position: absolute;
  inset: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.bubble {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.35;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  opacity: 0;
  transform: translateY(12px);
  animation: slideIn 0.45s ease forwards;
  background: #0f1b2e;
  color: #dbe7ff;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.bubble.me {
  margin-left: auto;
  background: #ffffff;
  color: #0b1320;
  border-color: #e8ecf6;
}
.meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  margin-top: 6px;
  color: #8aa2c6;
}
.meta .tag {
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.row-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  animation: blink 1.2s infinite;
}
.dot:nth-child(2) {
  animation-delay: 0.2s;
}
.dot:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes blink {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}
@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Icons (inline SVG) */
.ico {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

/* ========== Sections ========== */
section.section {
  background: #fff;
}
section.section + .section {
  border-top: 1px solid var(--ring);
}
section.section .wrap {
  padding: 56px 5%;
}
h2.section-title {
  font-size: 28px;
  text-align: center;
  margin-bottom: 22px;
}
p.center {
  max-width: 760px;
  margin: 0 auto 18px;
  text-align: center;
  color: var(--muted);
}

/* ========== Features ========== */
.grid {
  display: grid;
  gap: 22px;
}
@media (min-width: 840px) {
  .cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  background: #fff;
  border: 1px solid var(--ring);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.card h4 {
  font-size: 18px;
  margin-bottom: 6px;
}
.muted {
  color: var(--muted);
}

/* ========== Who Can Use ========== */
.who {
  background: #f0f4f8;
}

/* ========== Testimonials Carousel ========== */
.carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.slides {
  display: flex;
  gap: 18px;
  overflow: hidden;
  scroll-behavior: smooth;
}
.slide {
  min-width: 100%;
  background: #e8f0fc;
  border: 1px solid #d7e3fb;
  border-radius: 16px;
  padding: 22px;
  font-size: 16px;
  font-style: italic;
}
.author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-weight: 700;
  color: #1f7af2;
  font-style: normal;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #cddbf9;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #1f3a7a;
}
.stars {
  display: inline-flex;
  gap: 2px;
  margin-left: 6px;
}
.star {
  width: 14px;
  height: 14px;
}
.dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}
.dotc {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #c2cfef;
  cursor: pointer;
}
.dotc.active {
  background: #1f7af2;
}
.cnav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #0f2747;
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.9;
}
.cnav:hover {
  opacity: 1;
}
.cprev {
  left: -8px;
}
.cnext {
  right: -8px;
}

/* ========== Footer ========== */
footer {
  background: #0f2747;
  color: #fff;
}
footer .wrap {
  padding: 22px 5%;
  text-align: center;
  font-size: 14px;
  opacity: 0.95;
}

/* ==== Floating Buttons ==== */
.floating-btn {
  position: fixed;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s;
  z-index: 999;
}
.floating-btn:hover {
  transform: scale(1.1);
}
#whatsappBtn {
  bottom: 140px;
  background: #25d366;
}
#topBtn {
  bottom: 80px;
  background: #1f7af2;
  display: none;
}
#toggleTheme {
  bottom: 200px;
  background: #ff6600;
}

/* ==== Dark Mode ==== */
body.dark {
  background: #0b1320;
  color: #e0e6f0;
}
body.dark nav,
body.dark section.section,
body.dark .card {
  background: #111827;
  color: #e0e6f0;
  border-color: #2a3548;
}
body.dark footer {
  background: #0b1320;
}

/* ==== Hero Mobile Fit ==== */
@media (max-width: 768px) {
  .hero .grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 0;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero p.lead {
    font-size: 16px;
  }
  .hero .btn {
    margin-bottom: 10px;
  }
  .phone {
    margin: 20px auto 0;
    width: 280px;
  }
}

/* ==== Mobile Nav ==== */









/* ---- HERO ---- */
.hero .wrap.grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-content {
  flex: 1 1 400px;
}

.phone-wrap {
  flex: 1 1 400px;
  text-align: center;
}

@media (max-width: 768px) {
  .hero .wrap.grid {
    flex-direction: column;
    padding: 20px;
  }
  .hero-content, .phone-wrap {
    text-align: center;
  }
}

/* ---- FLOATING BUTTONS ---- */
/* Floating Buttons Container */
.floating-btns {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 12px; /* space between buttons */
  z-index: 999;
}

/* Individual Buttons */
.floating-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.3s;
  color: #fff;
}

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

#topBtn { background: #1f7af2; }
#toggleTheme { background: #ff6600; }
#whatsappBtn { background: #25d366; }





/* ---- NAVIGATION ---- */
nav {
  background: #fff;
  border-bottom: 1px solid var(--ring);
  position: relative;
  z-index: 1000;
}

nav .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5%;
}

.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.3px;
  color: var(--brand); /* visible on mobile hero */
}

/* Menu links - desktop */
.menu {
  display: flex;
  gap: 20px;
}
.menu a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.menu a:hover {
  opacity: 0.8;
}

/* Mobile toggle button */
.menu-btn {
  display: none; /* hidden on desktop */
  background: none;
  border: none;
  font-size: 28px;
  color: var(--brand); /* visible on hero */
  cursor: pointer;
}

/* ---- MOBILE MENU ---- */
@media (max-width: 768px) {
  .menu-btn {
    display: inline-block;
  }
  
  .menu {
    display: none; /* hidden by default */
    flex-direction: column;
    position: absolute;
    top: 60px; /* below navbar */
    right: 0;
    width: 100%;
    background: #007bff; /* dropdown background */
    text-align: center;
    z-index: 999;
    padding: 10px 0;
  }

  .menu.show {
    display: flex;
  }

  .menu a {
    display: block;
    padding: 12px 0;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
  }

  .menu a:hover {
    background: rgba(255,255,255,0.1);
  }
}


/* Testimonial Carousel */
.testimonial-carousel {
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.chat-bubble {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f0f4f8;
  padding: 16px;
  border-radius: 20px;
  position: relative;
}

.chat-bubble.me {
  background: #1f7af2;
  color: #fff;
  justify-content: flex-end;
  flex-direction: row-reverse;
}

.chat-icon {
  font-size: 20px;
  color: #ff6600;
}

.chat-bubble.me .chat-icon {
  color: #ffd966;
}

.author {
  margin-top: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #1f7af2;
  text-align: right;
}

/* Hide nav buttons */
.cnav { display: none; }



.testimonial-slider {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  height: 180px; /* fixed height for all testimonials */
  overflow: hidden;
}

.testimonial-card {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 1s ease;
  background: #fff;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
  width: 90%;
  max-width: 700px;
}

.testimonial-card.active {
  opacity: 1;
}

.testimonial-icon {
  font-size: 30px;
  margin-bottom: 10px;
  color: #ff6600; /* brand color */
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 12px;
  color: #0f2747;
}

.testimonial-author {
  font-weight: 700;
  color: #1f7af2;
}
