/* Businessworks Consulting — site stylesheet
   A single, dependency-free stylesheet (no build step) so it's easy to
   tweak directly on the server if needed. */

:root {
  --navy: #12213b;
  --navy-light: #1c3357;
  --teal: #0f8b8d;
  --teal-dark: #0b6a6c;
  --amber: #e0a23b;
  --ink: #1f2430;
  --muted: #5b6472;
  --border: #e3e6ec;
  --bg: #f7f8fa;
  --card: #ffffff;
  --success-bg: #e6f6ec;
  --success-text: #1b7a3d;
  --error-bg: #fdeceb;
  --error-text: #b3271e;
  --radius: 10px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { color: #fff; font-weight: 700; font-size: 1.25rem; letter-spacing: 0.01em; }
.brand span { color: var(--amber); }
.main-nav { display: flex; gap: 20px; margin-left: auto; }
.main-nav a { color: #dbe2ee; font-weight: 500; }
.main-nav a:hover { color: #fff; text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions a { color: #fff; font-weight: 600; }
.cart-link { border: 1px solid rgba(255,255,255,0.35); padding: 6px 12px; border-radius: 20px; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 860px) {
  .main-nav { position: absolute; top: 72px; left: 0; right: 0; background: var(--navy-light); flex-direction: column; padding: 12px 24px; display: none; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; margin-left: auto; }
  .header-actions { margin-left: 8px; }
}

/* ---------- Flash messages ---------- */
.flash { margin: 16px auto 0; padding: 12px 16px; border-radius: var(--radius); }
.flash-success { background: var(--success-bg); color: var(--success-text); }
.flash-error { background: var(--error-bg); color: var(--error-text); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: #fff; padding: 80px 0; }
.hero h1 { font-size: 2.5rem; max-width: 720px; }
.hero p.lead { font-size: 1.15rem; color: #c9d3e2; max-width: 620px; }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

.btn { display: inline-block; padding: 12px 24px; border-radius: 8px; font-weight: 600; border: none; cursor: pointer; font-size: 1rem; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); text-decoration: none; }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.6); }
.btn-outline:hover { border-color: #fff; text-decoration: none; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-light); text-decoration: none; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-sm { padding: 8px 14px; font-size: 0.9rem; }

/* ---------- Sections / cards ---------- */
section { padding: 64px 0; }
section.alt { background: #fff; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin-bottom: 8px; }
.card .price { font-weight: 700; color: var(--navy); font-size: 1.1rem; margin: 12px 0; }
.card .meta { color: var(--muted); font-size: 0.9rem; }

.badge {
  display: inline-block;
  background: rgba(15, 139, 141, 0.12);
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

/* ---------- Forms ---------- */
form.stacked label { display: block; font-weight: 600; margin: 16px 0 6px; }
form.stacked input[type="text"],
form.stacked input[type="email"],
form.stacked input[type="tel"],
form.stacked input[type="password"],
form.stacked input[type="date"],
form.stacked input[type="datetime-local"],
form.stacked select,
form.stacked textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}
form.stacked textarea { min-height: 120px; resize: vertical; }
form.stacked .checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; }
form.stacked .checkbox-row input { margin-top: 4px; }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; max-width: 620px; }
.field-error { color: var(--error-text); font-size: 0.85rem; margin-top: 4px; }

/* ---------- Tables (cart / account / admin) ---------- */
table.simple { width: 100%; border-collapse: collapse; }
table.simple th, table.simple td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); }
table.simple th { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c9d3e2; margin-top: 64px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding: 48px 24px; }
.footer-inner .brand { color: #fff; }
.footer-inner h4 { color: #fff; margin-bottom: 12px; }
.footer-inner a { display: block; color: #c9d3e2; margin-bottom: 8px; }
.footer-inner a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 16px 24px; font-size: 0.85rem; text-align: center; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Chatbot widget ---------- */
#bw-chatbot { position: fixed; right: 20px; bottom: 20px; z-index: 100; font-family: inherit; }
#bw-chatbot-toggle {
  width: 56px; height: 56px; border-radius: 50%; border: none;
  background: var(--teal); color: #fff; font-size: 1.4rem; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}
#bw-chatbot-panel {
  position: absolute; right: 0; bottom: 68px; width: 320px; max-height: 460px;
  background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: flex; flex-direction: column; overflow: hidden;
}
#bw-chatbot-panel.hidden { display: none; }
.bw-chat-head { background: var(--navy); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.bw-chat-head button { background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; }
#bw-chatbot-messages { flex: 1; overflow-y: auto; padding: 14px; font-size: 0.92rem; }
#bw-chatbot-messages .msg { margin-bottom: 10px; padding: 8px 12px; border-radius: 10px; max-width: 85%; }
#bw-chatbot-messages .msg.bot { background: #eef1f5; }
#bw-chatbot-messages .msg.user { background: var(--teal); color: #fff; margin-left: auto; }
#bw-chatbot-form { display: flex; border-top: 1px solid var(--border); }
#bw-chatbot-form input { flex: 1; border: none; padding: 12px; font-size: 0.9rem; }
#bw-chatbot-form button { border: none; background: var(--teal); color: #fff; padding: 0 16px; cursor: pointer; }
.bw-link-btn { border: none; background: none; color: var(--teal-dark); font-size: 0.82rem; padding: 8px; cursor: pointer; text-align: center; }
#bw-chatbot-handoff { padding: 12px; border-top: 1px solid var(--border); font-size: 0.88rem; }
#bw-chatbot-handoff.hidden { display: none; }
#bw-chatbot-handoff input { width: 100%; margin-bottom: 8px; padding: 8px; border: 1px solid var(--border); border-radius: 6px; }

/* ---------- Webinar calendar ---------- */
.calendar-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.calendar-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.calendar-month-label { margin: 0; font-size: 1.1rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calendar-grid-head { margin-bottom: 6px; }
.calendar-dow { text-align: center; font-size: 0.78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.calendar-cell {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: default;
  color: var(--ink);
}
.calendar-cell-empty { border: none; background: transparent; }
.calendar-cell.has-events:not(.is-past) { cursor: pointer; border-color: var(--teal); font-weight: 700; }
.calendar-cell.has-events:not(.is-past):hover { background: rgba(15,139,141,0.08); }
.calendar-cell.is-past { color: #c3c8d1; }
.calendar-cell.is-today { box-shadow: inset 0 0 0 2px var(--amber); }
.calendar-cell.selected { background: var(--teal); color: #fff; border-color: var(--teal); }
.calendar-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.calendar-cell.selected .calendar-dot { background: #fff; }
@media (max-width: 640px) { .calendar-daynum { font-size: 0.85rem; } }

.webinar-day-panel { margin-top: 24px; }
.webinar-day-panel.hidden { display: none; }
.webinar-day-panel .grid { margin-top: 12px; }
#webinarDayPanelEvents { display: grid; gap: 16px; margin-top: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.add-to-cal { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- Consultancy request type picker ---------- */
.req-type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 10px 0 20px; }
.req-type-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  background: #fff;
  font-weight: 400;
}
.req-type-card:has(input:checked) { border-color: var(--teal); background: rgba(15,139,141,0.06); }
.req-type-card input { margin-bottom: 4px; }
.req-type-card strong { display: block; }
.req-type-card .meta { display: block; margin-top: 2px; line-height: 1.4; }
.req-type-questions { border-left: 3px solid var(--teal); padding-left: 16px; margin: 8px 0 20px; }

/* ---------- Consultancy request thread ---------- */
.thread-message { border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 12px; }
.thread-message.from-admin { background: rgba(15,139,141,0.06); border-color: var(--teal); }
.thread-message .thread-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 6px; }
.thread-quota-note { font-size: 0.85rem; color: var(--muted); }

/* ---------- Misc ---------- */
.muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.inline-form { display: flex; gap: 8px; }
.tag-list span { display: inline-block; background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px; font-size: 0.8rem; margin: 0 6px 6px 0; }
