/* ─── EBBI Brand Variables ─────────────────────────────────────────────────── */
:root {
  --blue:      #CE1126;
  --blue-dark: #7d000e;
  --blue-mid:  #e8132a;
  --red:       #CE1126;
  --red-light: #f5253e;
  --gold:      #FCD116;
  --gold-dark: #e8be00;
  --white:     #FFFFFF;
  --off-white: #fef9f9;
  --light-blue:#fde8ea;
  --text-dark: #1a0608;
  --text-mid:  #4a3034;
  --shadow-sm: 0 2px 8px rgba(125,0,14,0.10);
  --shadow-md: 0 6px 24px rgba(125,0,14,0.14);
  --shadow-lg: 0 16px 48px rgba(125,0,14,0.18);
  --radius:    12px;
  --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; }

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

/* ─── Utility ───────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--off-white); }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  border: 2px solid transparent; text-decoration: none;
  transition: all 0.25s ease;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-mid); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-secondary:hover { background: var(--blue); color: var(--white); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-light); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--blue-dark); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); }

/* ─── Navigation ─────────────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--blue-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-brand { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; }
.nav-logo {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--gold) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 900; color: white;
  box-shadow: 0 0 0 3px rgba(252,209,22,0.35);
  flex-shrink: 0;
}
.nav-brand-text { display: flex; flex-direction: column; }
.nav-brand-name { color: var(--white); font-size: 1.05rem; font-weight: 800; letter-spacing: 0.01em; line-height: 1.1; }
.nav-brand-sub  { color: var(--gold); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  color: rgba(255,255,255,0.82); font-size: 0.875rem; font-weight: 500;
  padding: 0.5rem 0.85rem; border-radius: 6px; text-decoration: none;
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-cta { margin-left: 0.75rem; }
.nav-mobile-btn { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; padding: 0.4rem; }

/* ─── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 45%, #1a4db5 100%);
  position: relative; overflow: hidden;
  padding: 6rem 0 5rem;
}
.hero::before {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(252,209,22,0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(252,209,22,0.07) 0%, transparent 45%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(252,209,22,0.15); border: 1px solid rgba(252,209,22,0.35);
  color: var(--gold); padding: 0.4rem 1rem; border-radius: 50px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 900;
  color: var(--white); line-height: 1.12; margin-bottom: 1.25rem;
}
.hero h1 span { color: var(--gold); }
.hero-desc { color: rgba(255,255,255,0.82); font-size: 1.05rem; line-height: 1.7; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-trust {
  display: flex; gap: 1.5rem; margin-top: 2.5rem;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.12);
}
.trust-item { display: flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.75); font-size: 0.82rem; }
.trust-icon { color: var(--gold); font-size: 1rem; }

.hero-visual {
  display: flex; flex-direction: column; gap: 1rem; align-items: flex-end;
}
.hero-card {
  background: rgba(255,255,255,0.06); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg);
  padding: 1.5rem; width: 100%; max-width: 380px;
}
.hero-card-title { color: var(--gold); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.hero-service-list { list-style: none; }
.hero-service-list li {
  color: rgba(255,255,255,0.88); font-size: 0.88rem;
  padding: 0.45rem 0; display: flex; align-items: center; gap: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hero-service-list li:last-child { border-bottom: none; }
.hero-service-list .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* ─── Flag Stripe Divider ─────────────────────────────────────────────────── */
.flag-stripe {
  height: 6px;
  background: linear-gradient(90deg, var(--blue-dark) 0%, var(--blue) 50%, var(--gold) 100%);
}

/* ─── Services Grid ──────────────────────────────────────────────────────────── */
.section-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--red); margin-bottom: 0.5rem;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: var(--blue-dark); margin-bottom: 0.75rem; line-height: 1.2; }
.section-desc { color: var(--text-mid); font-size: 1rem; max-width: 560px; }

.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; margin-top: 3rem; }

.service-panel {
  background: var(--white); border: 1px solid #ffd8db;
  border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow-sm); transition: all 0.3s ease;
}
.service-panel:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-panel-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  flex-shrink: 0;
}
.service-icon.blue { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); }
.service-icon.red  { background: linear-gradient(135deg, #8b0011, var(--red)); }
.service-panel-title { font-size: 1.1rem; font-weight: 800; color: var(--blue-dark); }
.service-panel-sub   { font-size: 0.78rem; color: var(--text-mid); }

.service-items { list-style: none; }
.service-items li {
  display: flex; align-items: flex-start; gap: 0.7rem;
  padding: 0.6rem 0; border-bottom: 1px solid #f0f3ff;
  font-size: 0.9rem; color: var(--text-mid);
}
.service-items li:last-child { border-bottom: none; }
.service-items .si-icon { color: var(--blue); font-size: 0.9rem; margin-top: 0.05rem; flex-shrink: 0; }
.service-items strong { color: var(--text-dark); display: block; font-size: 0.92rem; }

/* ─── Stats Banner ───────────────────────────────────────────────────────────── */
.stats-banner {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  padding: 3.5rem 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-card { text-align: center; padding: 1.5rem; }
.stat-number { font-size: 2.5rem; font-weight: 900; color: var(--gold); display: block; }
.stat-label  { color: rgba(255,255,255,0.78); font-size: 0.85rem; margin-top: 0.25rem; }

/* ─── Authority / About Section ──────────────────────────────────────────────── */
.authority-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.authority-badge {
  display: flex; gap: 1rem; align-items: flex-start;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  border-radius: var(--radius-lg); padding: 2rem;
  color: white; margin-bottom: 1rem;
}
.authority-badge-icon { font-size: 2rem; flex-shrink: 0; }
.authority-badge-title { font-size: 1.1rem; font-weight: 700; color: var(--gold); }
.authority-badge-text  { font-size: 0.88rem; color: rgba(255,255,255,0.82); line-height: 1.6; }

.compliance-list { list-style: none; }
.compliance-list li {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0; font-size: 0.9rem; color: var(--text-mid);
  border-bottom: 1px solid #f0f3ff;
}
.compliance-list li:last-child { border-bottom: none; }
.compliance-check { color: var(--blue); font-weight: 700; }

/* ─── Intake Form Section ────────────────────────────────────────────────────── */
.intake-section { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); }
.intake-section .section-title { color: white; }
.intake-section .section-desc   { color: rgba(255,255,255,0.8); }

.intake-form-card {
  background: white; border-radius: var(--radius-lg);
  padding: 2.5rem; box-shadow: var(--shadow-lg);
  max-width: 700px; margin: 2.5rem auto 0;
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.75rem; }
.form-label { font-size: 0.82rem; font-weight: 600; color: var(--blue-dark); }
.form-input, .form-select, .form-textarea {
  padding: 0.65rem 0.9rem; border: 1.5px solid #f0d0d4;
  border-radius: 8px; font-size: 0.92rem; font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff8f8;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,56,168,0.1);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-error { font-size: 0.78rem; color: var(--red); margin-top: 0.2rem; display: none; }
.form-input.invalid { border-color: var(--red); }
.form-submit-row { margin-top: 1.25rem; }

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
footer {
  background: var(--blue-dark); color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand-desc { font-size: 0.85rem; line-height: 1.7; margin: 0.75rem 0 1.25rem; color: rgba(255,255,255,0.65); }
.footer-heading { color: var(--gold); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: rgba(255,255,255,0.45); flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom a { color: rgba(255,255,255,0.55); text-decoration: none; }

/* ─── Alert / Toast ──────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
  background: var(--blue-dark); color: white; padding: 1rem 1.5rem;
  border-radius: 10px; box-shadow: var(--shadow-lg); z-index: 9000;
  font-size: 0.9rem; max-width: 420px; text-align: center;
  animation: fadeUp 0.4s ease; display: none;
}
.toast.success { background: #0d5c2e; border-left: 4px solid #25c468; }
.toast.error   { background: #6b0010; border-left: 4px solid var(--red); }
@keyframes fadeUp { from { opacity: 0; transform: translateX(-50%) translateY(12px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ─── Chatbot Widget ─────────────────────────────────────────────────────────── */
#chat-widget { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; }

#chat-fab {
  width: 62px; height: 62px; border-radius: 50%; cursor: pointer;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  border: 3px solid var(--gold); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; transition: all 0.25s ease;
  position: relative;
}
#chat-fab:hover { transform: scale(1.08); }
#chat-fab .pulse {
  position: absolute; top: -4px; right: -4px;
  width: 14px; height: 14px; background: var(--red);
  border-radius: 50%; border: 2px solid white;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: 0.6; } }

#chat-panel {
  position: absolute; bottom: 75px; right: 0;
  width: 360px; max-height: 520px;
  background: white; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid #e0e8ff;
  display: none; flex-direction: column; overflow: hidden;
}
#chat-panel.open { display: flex; animation: slideUp 0.3s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.chat-header {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  padding: 1rem 1.2rem; display: flex; align-items: center; gap: 0.75rem;
}
.chat-avatar { font-size: 1.8rem; }
.chat-header-info { flex: 1; }
.chat-name   { color: white; font-weight: 700; font-size: 0.95rem; }
.chat-status { color: var(--gold); font-size: 0.72rem; display: flex; align-items: center; gap: 0.3rem; }
.chat-status::before { content: ''; width: 6px; height: 6px; background: #25c468; border-radius: 50%; }
.chat-close-btn { background: none; border: none; color: white; cursor: pointer; font-size: 1.2rem; padding: 0.2rem; }

.chat-messages {
  flex: 1; overflow-y: auto; padding: 1rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  background: var(--off-white);
}
.chat-msg { max-width: 82%; padding: 0.65rem 0.9rem; border-radius: 14px; font-size: 0.875rem; line-height: 1.5; }
.chat-msg.bot { background: white; border: 1px solid #ffd8db; color: var(--text-dark); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--blue); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg.bot strong { color: var(--blue-dark); }

.chat-quick-btns { display: flex; gap: 0.4rem; flex-wrap: wrap; padding: 0 1rem 0.5rem; }
.chat-quick-btn {
  background: var(--light-blue); color: var(--blue-dark); border: 1px solid #ffb8c0;
  border-radius: 20px; padding: 0.3rem 0.75rem; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.chat-quick-btn:hover { background: var(--blue); color: white; }

.chat-input-row { display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid #f8e0e3; }
.chat-input {
  flex: 1; padding: 0.55rem 0.85rem; border: 1.5px solid #f0d0d4;
  border-radius: 20px; font-size: 0.875rem; font-family: inherit;
  outline: none;
}
.chat-input:focus { border-color: var(--blue); }
.chat-send-btn {
  width: 38px; height: 38px; border-radius: 50%; background: var(--blue);
  border: none; color: white; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.chat-send-btn:hover { background: var(--blue-mid); }

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid, .services-grid, .authority-grid, .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { align-items: flex-start; }
  .hero-card { max-width: 100%; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--blue-dark); padding: 1rem; gap: 0.25rem; }
  .nav-mobile-btn { display: block; }
  .form-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 3.5rem 0 3rem; }
  #chat-panel { width: 300px; }
}
