/* FlowRight Gutters — style.css */

:root {
  --navy:   #1B2A4A;
  --navy2:  #243660;
  --orange: #C45C1A;
  --orange2:#d96920;
  --white:  #ffffff;
  --off:    #f5f7fa;
  --gray:   #6b7280;
  --border: #dce3ed;
  --text:   #1a1a2e;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

img { max-width: 100%; display: block; }

/* ── NAV ─────────────────────────────────────────────────────────────────── */

nav {
  background: var(--navy);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.nav-brand {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.nav-cta {
  background: var(--orange);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--orange2); }

/* ── HERO ─────────────────────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0f1c33 60%, #1e3a2f 100%);
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
}

.hero-inner { position: relative; max-width: 680px; }

.hero-badge {
  display: inline-block;
  background: rgba(196, 92, 26, 0.25);
  color: #f4a56a;
  border: 1px solid rgba(196, 92, 26, 0.4);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero h1 span { color: #f4a56a; }

.hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s;
}

.hero-cta:hover { background: var(--orange2); transform: translateY(-1px); }

.hero-proof {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-stat {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-stat strong { color: var(--white); font-size: 16px; }

/* ── SECTION COMMON ────────────────────────────────────────────────────────── */

section { padding: 72px 24px; }

.section-label {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--orange);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--gray);
  max-width: 560px;
  margin-bottom: 48px;
}

.container { max-width: 1100px; margin: 0 auto; }

/* ── SERVICES ─────────────────────────────────────────────────────────────── */

#services { background: var(--off); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.15s;
}

.service-card:hover {
  box-shadow: 0 8px 24px rgba(27, 42, 74, 0.1);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(196, 92, 26, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.5;
}

/* ── WHY FLOWRIGHT ─────────────────────────────────────────────────────────── */

#why { background: var(--navy); }

#why .section-title { color: var(--white); }
#why .section-label { color: #f4a56a; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.trust-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 28px 24px;
}

.trust-num {
  font-size: 40px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 12px;
}

.trust-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.trust-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
}

/* ── HOW IT WORKS ──────────────────────────────────────────────────────────── */

#how { background: var(--white); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step {
  text-align: center;
  padding: 0 20px 0;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 56px;
  height: 56px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.5;
}

/* ── SERVICE AREAS ─────────────────────────────────────────────────────────── */

#areas { background: var(--off); }

.areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 700px;
}

.area-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  border-left: 4px solid var(--orange);
}

.area-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}

.area-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.area-card ul li {
  font-size: 14px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 8px;
}

.area-card ul li::before {
  content: '✓';
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
}

/* ── CTA BANNER ────────────────────────────────────────────────────────────── */

.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #0f1c33 100%);
  padding: 72px 24px;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-banner p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .hero-cta { font-size: 16px; }

/* ── FOOTER ───────────────────────────────────────────────────────────────── */

footer {
  background: #0f1820;
  padding: 40px 24px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 14px;
}

footer strong { color: rgba(255,255,255,0.7); }

/* ── CHAT WIDGET ───────────────────────────────────────────────────────────── */

#chat-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--orange);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(196, 92, 26, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: background 0.15s, transform 0.1s;
}

#chat-toggle:hover { background: var(--orange2); transform: scale(1.05); }

#chat-toggle svg { width: 28px; height: 28px; }

#chat-bubble-dot {
  position: fixed;
  bottom: 72px;
  right: 20px;
  background: #22c55e;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid white;
  z-index: 1000;
  display: none;
}

#chat-window {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 500px;
  max-height: calc(100vh - 120px);
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 998;
}

#chat-window.open { display: flex; }

.chat-header {
  background: var(--navy);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.chat-avatar {
  width: 38px;
  height: 38px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.chat-header-info { flex: 1; }

.chat-header-name {
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
}

.chat-header-status {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-online-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
}

.chat-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 4px;
}

.chat-close:hover { color: white; }

#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8f9fb;
}

.msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.msg-bot {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.msg-user {
  background: var(--navy);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.msg-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 12px 16px;
}

.dot { width: 7px; height: 7px; background: var(--gray); border-radius: 50%; animation: bounce 1.2s infinite; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

.chat-input-area {
  padding: 12px 16px;
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-shrink: 0;
}

#chat-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  min-height: 42px;
  max-height: 100px;
  outline: none;
  line-height: 1.4;
  color: var(--text);
}

#chat-input:focus { border-color: var(--navy); }

#chat-send {
  width: 40px;
  height: 40px;
  background: var(--orange);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

#chat-send:hover { background: var(--orange2); }
#chat-send:disabled { background: var(--border); cursor: not-allowed; }

#chat-send svg { width: 18px; height: 18px; }

/* ── RESPONSIVE ────────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .steps::before { display: none; }

  .areas-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  #chat-window {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    height: 65vh;
  }

  #chat-toggle {
    bottom: 20px;
    right: 20px;
  }
}
