:root {
  --navy: #0b2a5b;
  --navy-dark: #071c3f;
  --purple: #5a2d82;
  --green: #6fbe44;
  --grey-bg: #f4f5f7;
  --text: #1c1c1c;
  --white: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
}

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

/* ---------- Top utility bar ---------- */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 32px;
  border-bottom: 1px solid #e5e5e5;
}

.logo {
  height: 36px;
  width: auto;
  display: block;
}

.top-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 20px;
  font-size: 14px;
}

.top-nav a { color: #333; }
.top-nav a:hover { color: var(--navy); }

.login-btn {
  background: var(--navy);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}

/* ---------- Secondary nav row ---------- */
.secondary-nav {
  display: flex;
  gap: 24px;
  padding: 12px 32px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  flex-wrap: wrap;
}

/* ---------- Alert banner ---------- */
.alert-banner {
  background: var(--purple);
  color: var(--white);
  padding: 14px 32px;
  font-size: 14px;
  line-height: 1.5;
}

.alert-banner strong { display: block; margin-bottom: 2px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 40px 32px 56px;
}

.breadcrumb {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 20px;
}

.breadcrumb span { margin: 0 6px; }

.hero h1 {
  font-size: 42px;
  margin: 0 0 16px;
  border-left: 6px solid var(--green);
  padding-left: 18px;
}

.hero p {
  max-width: 640px;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
  padding-left: 24px;
}

/* ---------- Popular links ---------- */
.section {
  padding: 48px 32px;
}

.section.grey { background: var(--grey-bg); }

.section h2 {
  font-size: 22px;
  margin-bottom: 24px;
  color: var(--navy);
}

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

.link-card {
  background: var(--white);
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 22px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  min-height: 100px;
  transition: box-shadow 0.15s ease;
}

.link-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); }

.link-card .arrow { color: var(--green); font-size: 20px; }

/* ---------- Hub cards ---------- */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.hub-card {
  background: var(--white);
  border-radius: 10px;
  padding: 28px;
  border: 1px solid #e2e2e2;
}

.hub-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 19px;
}

.hub-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  margin: 0 0 18px;
}

.hub-card .link-out {
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--navy-dark);
  color: #cdd6e6;
  padding: 32px;
  font-size: 13px;
  text-align: center;
}

/* ---------- Cognigy voice widget (Ivy) theming ----------
   Overrides the official click-to-call-widget's documented CSS variables
   and class names (see https://github.com/Cognigy/click-to-call-widget
   #customizing-widget-styles) to match the icare brand. */
:root {
  --webrtc-bg-color: var(--white);
  --webrtc-text-color: var(--navy);
  --webrtc-primary-color: var(--navy);
  --webrtc-secondary-color: var(--green);
  --webrtc-border-color: #e2e2e2;
  --webrtc-bubble-bot-bg: var(--grey-bg);
  --webrtc-bubble-user-bg: var(--navy);
  --webrtc-bubble-bot-text: var(--text);
  --webrtc-bubble-user-text: var(--white);
  --webrtc-powered-by-color: rgba(11, 42, 91, 0.45);
  --webrtc-powered-by-link-color: rgba(11, 42, 91, 0.65);
  --webrtc-avatar-bg-color: var(--navy);
}

.webrtc_widget_container {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18) !important;
}

.webrtc_widget_agent_name {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}

/* Boxed, "chat pane" look for the live transcript, with a purple
   "Ivy · AI Assistant · Online" header strip matching the icare
   alert banner's colour. */
.webrtc_widget_transcript_wrapper {
  background-color: var(--white) !important;
  border: 1px solid #e2e2e2 !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18) !important;
  padding: 46px 14px 90px !important;
  position: relative;
}

.webrtc_widget_transcript_wrapper::before {
  content: "Ivy \00b7 AI Assistant \00b7 Online";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--purple);
  color: var(--white);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 14px;
  border-radius: 16px 16px 0 0;
}

.webrtc_transcript_bubble {
  border-radius: 14px !important;
}

.webrtc_widget_call_button {
  background-color: var(--green) !important;
}

.webrtc_widget_call_button:hover {
  background-color: #5aa838 !important;
}
