/* =====================================================================
   Fedri Consulting Services Ltd
   Corporate stylesheet built on Bootstrap 5.3
   Supports light theme and dark theme through data-bs-theme
   ===================================================================== */

:root {
  --fd-brand: #1f4dd8;
  --fd-brand-2: #6b3df5;
  --fd-accent: #00b8a9;
  --fd-accent-2: #f6a821;
  --fd-ink: #0d1b34;
  --fd-body: #4a5b78;
  --fd-surface: #ffffff;
  --fd-surface-2: #f5f7fc;
  --fd-surface-3: #eef2fb;
  --fd-line: #dfe5f3;
  --fd-shadow: 0 18px 45px rgba(16, 32, 68, .10);
  --fd-shadow-sm: 0 6px 20px rgba(16, 32, 68, .07);
  --fd-radius: 18px;
  --fd-radius-sm: 12px;
  --fd-head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --fd-text: "Inter", "Segoe UI", system-ui, sans-serif;
}

[data-bs-theme="dark"] {
  --fd-brand: #6f96ff;
  --fd-brand-2: #a78bfa;
  --fd-accent: #2fd9c8;
  --fd-accent-2: #ffc65c;
  --fd-ink: #eef3ff;
  --fd-body: #a9b6d0;
  --fd-surface: #0e1526;
  --fd-surface-2: #131c31;
  --fd-surface-3: #1a2540;
  --fd-line: #24314f;
  --fd-shadow: 0 18px 45px rgba(0, 0, 0, .45);
  --fd-shadow-sm: 0 6px 20px rgba(0, 0, 0, .35);
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--fd-text);
  color: var(--fd-body);
  background: var(--fd-surface);
  font-size: 1.02rem;
  line-height: 1.85;
  letter-spacing: .1px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .fd-head {
  font-family: var(--fd-head);
  color: var(--fd-ink);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.22;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.18rem; }

p { margin-bottom: 1.15rem; }
a { text-decoration: none; }

.lead {
  font-size: 1.16rem;
  line-height: 1.8;
  color: var(--fd-body);
  font-weight: 400;
}

.fd-ink { color: var(--fd-ink) !important; }
.fd-muted { color: var(--fd-body) !important; }
.fd-brandtext { color: var(--fd-brand) !important; }
.fd-accenttext { color: var(--fd-accent) !important; }

section { position: relative; }
.fd-section { padding: 84px 0; }
.fd-section-sm { padding: 58px 0; }
.fd-alt { background: var(--fd-surface-2); }
.fd-alt-3 { background: var(--fd-surface-3); }

/* ---------- gradient text ---------- */
.fd-grad {
  background: linear-gradient(100deg, var(--fd-brand), var(--fd-brand-2) 55%, var(--fd-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- eyebrow ---------- */
.fd-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--fd-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fd-brand);
  background: color-mix(in srgb, var(--fd-brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--fd-brand) 25%, transparent);
  padding: .38rem .95rem;
  border-radius: 100px;
  margin-bottom: 1.1rem;
}
.fd-kicker.alt {
  color: var(--fd-accent);
  background: color-mix(in srgb, var(--fd-accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--fd-accent) 28%, transparent);
}

/* ---------- navbar ---------- */
.fd-nav {
  background: color-mix(in srgb, var(--fd-surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--fd-line);
  transition: box-shadow .25s ease, background .25s ease;
  padding: .55rem 0;
}
.fd-nav.scrolled { box-shadow: var(--fd-shadow-sm); }

.fd-logo { display: flex; align-items: center; gap: .6rem; }
.fd-logo-mark {
  width: 42px; height: 42px; flex: 0 0 auto;
  object-fit: contain; display: block;
}
/* the mark is drawn in the brand gradient, one file per theme */
.fd-mark-dark { display: none; }
[data-bs-theme="dark"] .fd-mark-light { display: none; }
[data-bs-theme="dark"] .fd-mark-dark { display: block; }
.fd-logo > span:last-child { display: block; line-height: 1; }
.fd-logo-text {
  font-family: var(--fd-head); font-weight: 800; font-size: 1.3rem;
  color: var(--fd-ink); line-height: 1.05; display: block;
}
.fd-logo-sub {
  display: block; font-family: var(--fd-text); font-size: .6rem; font-weight: 600;
  letter-spacing: .17em; text-transform: uppercase; color: var(--fd-body);
  line-height: 1; margin-top: 1px;
}

.fd-nav .nav-link {
  font-family: var(--fd-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--fd-ink);
  padding: .55rem .9rem !important;
  border-radius: 9px;
  transition: color .18s ease, background .18s ease;
}
.fd-nav .nav-link:hover,
.fd-nav .nav-link:focus,
.fd-nav .nav-link.active {
  color: var(--fd-brand);
  background: color-mix(in srgb, var(--fd-brand) 9%, transparent);
}

.dropdown-menu {
  min-width: 17rem;
  border: 1px solid var(--fd-line);
  border-radius: var(--fd-radius-sm);
  box-shadow: var(--fd-shadow);
  background: var(--fd-surface);
  padding: .55rem;
}
.dropdown-item {
  border-radius: 9px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--fd-body);
  padding: .5rem .75rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.dropdown-item:hover, .dropdown-item:focus {
  background: color-mix(in srgb, var(--fd-brand) 10%, transparent);
  color: var(--fd-brand);
}
.dropdown-item i { color: var(--fd-brand); margin-right: .5rem; }

.fd-mega { min-width: 680px; max-width: min(980px, calc(100vw - 2rem)); padding: 1.1rem; }
.fd-mega-title {
  font-family: var(--fd-head); font-size: .72rem; font-weight: 800;
  letter-spacing: .15em; text-transform: uppercase; color: var(--fd-brand);
  padding: .25rem .75rem .4rem;
}
@media (max-width: 991.98px) {
  .fd-mega { min-width: 100%; }
  .fd-nav .navbar-collapse { max-height: 76vh; overflow-y: auto; padding-bottom: 1rem; }
}

/* theme toggle */
.fd-theme-btn {
  width: 42px; height: 42px; border-radius: 11px;
  border: 1px solid var(--fd-line);
  background: var(--fd-surface-2);
  color: var(--fd-ink);
  display: grid; place-items: center;
  font-size: 1.05rem;
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}
.fd-theme-btn:hover { transform: translateY(-2px); border-color: var(--fd-brand); color: var(--fd-brand); }
.fd-icon-sun { display: none; }
[data-bs-theme="dark"] .fd-icon-sun { display: block; }
[data-bs-theme="dark"] .fd-icon-moon { display: none; }

/* ---------- buttons ---------- */
.btn { font-family: var(--fd-head); font-weight: 700; border-radius: 11px; padding: .72rem 1.5rem; font-size: .95rem; }
.btn-fd {
  background: linear-gradient(120deg, var(--fd-brand), var(--fd-brand-2));
  color: #fff; border: none;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--fd-brand) 34%, transparent);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-fd:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.07); }
.btn-fd-outline {
  border: 1.6px solid var(--fd-line); color: var(--fd-ink); background: transparent;
  transition: all .2s ease;
}
.btn-fd-outline:hover {
  border-color: var(--fd-brand); color: var(--fd-brand);
  background: color-mix(in srgb, var(--fd-brand) 8%, transparent); transform: translateY(-2px);
}
.btn-fd-light { background: #fff; color: #16224a; border: none; }
.btn-fd-light:hover { background: #eef2ff; color: #16224a; transform: translateY(-2px); }
.btn-fd-ghost { border: 1.6px solid rgba(255,255,255,.45); color: #fff; }
.btn-fd-ghost:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }

/* ---------- hero ---------- */
.fd-hero {
  position: relative;
  padding: 132px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 82% -8%, color-mix(in srgb, var(--fd-brand) 22%, transparent), transparent 62%),
    radial-gradient(760px 420px at 6% 12%, color-mix(in srgb, var(--fd-accent) 16%, transparent), transparent 60%),
    var(--fd-surface-2);
}
.fd-hero-sm { padding: 112px 0 64px; }
.fd-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--fd-line) 1px, transparent 1px), linear-gradient(90deg, var(--fd-line) 1px, transparent 1px);
  background-size: 62px 62px;
  opacity: .3;
  mask-image: radial-gradient(circle at 50% 32%, #000 12%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 32%, #000 12%, transparent 72%);
  pointer-events: none;
}
.fd-hero > .container { position: relative; z-index: 2; }

.fd-hero-blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; z-index: 1;
  animation: fdfloat 14s ease-in-out infinite;
}
.fd-blob-1 { width: 340px; height: 340px; background: color-mix(in srgb, var(--fd-brand) 55%, transparent); top: -70px; right: 8%; }
.fd-blob-2 { width: 280px; height: 280px; background: color-mix(in srgb, var(--fd-accent) 50%, transparent); bottom: -90px; left: 4%; animation-delay: 3s; }
@keyframes fdfloat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-26px) scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  .fd-hero-blob { animation: none; }
  html { scroll-behavior: auto; }
  .fd-reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- cards ---------- */
.fd-card {
  background: var(--fd-surface);
  border: 1px solid var(--fd-line);
  border-radius: var(--fd-radius);
  padding: 2rem 1.75rem;
  transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
  position: relative;
  overflow: hidden;
}
/* stretch only when a card is the sole occupant of its grid column,
   so stacked sidebar cards keep their natural height */
[class*="col-"] > .fd-card:only-child { height: 100%; }

.fd-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--fd-brand), var(--fd-accent));
  transition: width .35s ease;
}
.fd-card:hover { transform: translateY(-7px); box-shadow: var(--fd-shadow); border-color: color-mix(in srgb, var(--fd-brand) 32%, transparent); }
.fd-card:hover::before { width: 100%; }
.fd-card h3, .fd-card h4 { margin-bottom: .7rem; }
.fd-card p:last-child { margin-bottom: 0; }
a.fd-card { display: block; color: inherit; }
a.fd-card h3, a.fd-card h4 { color: var(--fd-ink); }
a.fd-card:hover h3, a.fd-card:hover h4 { color: var(--fd-brand); }

.fd-icon {
  width: 56px; height: 56px; border-radius: 15px;
  display: grid; place-items: center;
  font-size: 1.5rem; color: #fff; margin-bottom: 1.15rem;
  background: linear-gradient(135deg, var(--fd-brand), var(--fd-brand-2));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--fd-brand) 32%, transparent);
}
.fd-icon.teal { background: linear-gradient(135deg, var(--fd-accent), #0891b2); }
.fd-icon.amber { background: linear-gradient(135deg, var(--fd-accent-2), #ef7a1a); }
.fd-icon.rose { background: linear-gradient(135deg, #f472b6, #db2777); }
.fd-icon.violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.fd-icon.green { background: linear-gradient(135deg, #34d399, #059669); }
.fd-icon-sm { width: 44px; height: 44px; font-size: 1.15rem; border-radius: 12px; margin-bottom: 0; flex: 0 0 auto; }

/* ---------- stats ---------- */
.fd-stat {
  text-align: center; padding: 1.6rem 1rem;
  border-radius: var(--fd-radius); border: 1px solid var(--fd-line);
  background: var(--fd-surface); height: 100%;
}
.fd-stat-num {
  font-family: var(--fd-head); font-weight: 800; line-height: 1;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  background: linear-gradient(120deg, var(--fd-brand), var(--fd-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fd-stat-label { font-size: .88rem; font-weight: 600; color: var(--fd-body); margin-top: .45rem; }
.fd-stat { position: relative; }
.fd-stat-info {
  position: absolute; top: .55rem; right: .6rem;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--fd-line); background: var(--fd-surface-2);
  color: var(--fd-body); font-size: .82rem; line-height: 1;
  display: grid; place-items: center; padding: 0; cursor: help;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.fd-stat-info:hover, .fd-stat-info:focus {
  color: var(--fd-brand); border-color: var(--fd-brand);
  background: color-mix(in srgb, var(--fd-brand) 10%, transparent);
}
.tooltip-inner {
  background: var(--fd-ink); color: var(--fd-surface);
  font-size: .85rem; line-height: 1.5; padding: .6rem .8rem;
  border-radius: 10px; max-width: 280px; text-align: left;
}
.tooltip.bs-tooltip-top .tooltip-arrow::before { border-top-color: var(--fd-ink); }
.tooltip.bs-tooltip-bottom .tooltip-arrow::before { border-bottom-color: var(--fd-ink); }

/* ---------- lists ---------- */
.fd-list { list-style: none; padding: 0; margin: 0; }
.fd-list li { position: relative; padding-left: 2rem; margin-bottom: .8rem; line-height: 1.75; }
.fd-list li::before {
  content: "\F26E"; font-family: "bootstrap-icons";
  position: absolute; left: 0; top: 0; color: var(--fd-accent); font-size: 1.05rem;
}
.fd-list.brand li::before { color: var(--fd-brand); }
.fd-list-arrow li::before { content: "\F285"; }

.fd-checklist { list-style: none; padding: 0; margin: 0; }
.fd-checklist li { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; }
.fd-checklist li i { color: var(--fd-accent); font-size: 1.15rem; margin-top: .25rem; flex: 0 0 auto; }

/* ---------- feature row ---------- */
.fd-feature { display: flex; gap: 1.1rem; align-items: flex-start; margin-bottom: 1.9rem; }
.fd-feature h4 { margin-bottom: .35rem; font-size: 1.1rem; }
.fd-feature p { margin-bottom: 0; font-size: .97rem; }

/* ---------- steps ---------- */
.fd-step { position: relative; padding-left: 4.4rem; padding-bottom: 2.4rem; }
.fd-step:last-child { padding-bottom: 0; }
.fd-step::before {
  content: ""; position: absolute; left: 25px; top: 62px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--fd-brand), transparent); opacity: .35;
}
.fd-step:last-child::before { display: none; }
.fd-step-num {
  position: absolute; left: 0; top: 0; width: 52px; height: 52px; border-radius: 15px;
  display: grid; place-items: center; font-family: var(--fd-head); font-weight: 800; font-size: 1.1rem;
  color: #fff; background: linear-gradient(135deg, var(--fd-brand), var(--fd-brand-2));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--fd-brand) 32%, transparent);
}

/* ---------- cta band ---------- */
.fd-cta {
  border-radius: 26px;
  padding: 3.4rem 2.6rem;
  background:
    radial-gradient(700px 320px at 88% 10%, rgba(255,255,255,.20), transparent 60%),
    linear-gradient(120deg, #17307c, #2f2a86 45%, #0f766e);
  color: #dfe7ff;
  position: relative; overflow: hidden;
}
.fd-cta h2, .fd-cta h3 { color: #fff; }
.fd-cta p { color: rgba(255,255,255,.86); }
.fd-cta::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 46px 46px; pointer-events: none;
}
.fd-cta > * { position: relative; z-index: 2; }

/* ---------- breadcrumb ---------- */
.fd-crumb { font-size: .87rem; margin-bottom: 1.1rem; }
.fd-crumb a { color: var(--fd-body); }
.fd-crumb a:hover { color: var(--fd-brand); }
.fd-crumb .sep { color: var(--fd-line); margin: 0 .45rem; }
.fd-crumb .current { color: var(--fd-brand); font-weight: 600; }

/* ---------- accordion ---------- */
.accordion-item {
  border: 1px solid var(--fd-line) !important;
  border-radius: var(--fd-radius-sm) !important;
  margin-bottom: .85rem;
  background: var(--fd-surface);
  overflow: hidden;
}
.accordion-button {
  font-family: var(--fd-head); font-weight: 700; font-size: 1.02rem;
  color: var(--fd-ink); background: var(--fd-surface); padding: 1.15rem 1.3rem;
}
.accordion-button:not(.collapsed) { color: var(--fd-brand); background: color-mix(in srgb, var(--fd-brand) 8%, transparent); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: var(--fd-line); }
.accordion-body { color: var(--fd-body); padding: 0 1.3rem 1.3rem; }

/* ---------- table ---------- */
.fd-table { border-radius: var(--fd-radius-sm); overflow: hidden; border: 1px solid var(--fd-line); }
.fd-table table { margin: 0; color: var(--fd-body); }
.fd-table thead th {
  background: var(--fd-surface-3); color: var(--fd-ink);
  font-family: var(--fd-head); font-weight: 700; font-size: .9rem;
  border-bottom: 1px solid var(--fd-line); padding: .95rem 1rem;
}
.fd-table td { padding: .9rem 1rem; border-color: var(--fd-line); vertical-align: top; font-size: .95rem; }

/* ---------- pills ---------- */
.fd-pill {
  display: inline-block; padding: .38rem .85rem; border-radius: 100px;
  font-size: .82rem; font-weight: 600; font-family: var(--fd-head);
  background: var(--fd-surface-3); color: var(--fd-ink);
  border: 1px solid var(--fd-line); margin: 0 .35rem .55rem 0;
}

/* ---------- quote ---------- */
.fd-quote {
  border-left: 3px solid var(--fd-brand);
  padding: .3rem 0 .3rem 1.4rem;
  font-size: 1.08rem; font-style: italic; color: var(--fd-ink);
}

/* ---------- footer ---------- */
.fd-footer {
  background: var(--fd-surface-2);
  border-top: 1px solid var(--fd-line);
  padding: 72px 0 0;
  font-size: .94rem;
}
[data-bs-theme="dark"] .fd-footer { background: #0a1120; }
.fd-footer h5 {
  font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fd-ink); margin-bottom: 1.15rem;
}
.fd-footer a { color: var(--fd-body); display: inline-block; padding: .18rem 0; transition: color .18s ease, transform .18s ease; }
.fd-footer a:hover { color: var(--fd-brand); transform: translateX(3px); }
/* buttons in the footer must keep button padding and button colour,
   not the compact styling used for the plain footer links */
.fd-footer a.btn {
  padding: .68rem 1.5rem;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: .25rem;
}
.fd-footer a.btn:hover { color: #fff; transform: translateY(-2px); }
.fd-footer a.btn-fd-outline { color: var(--fd-ink); }
.fd-footer a.btn-fd-outline:hover { color: var(--fd-brand); }

/* the brand lockup must stay horizontal and must not slide on hover */
.fd-footer a.fd-logo { display: flex; padding: 0; }
.fd-footer a.fd-logo:hover { transform: none; }
.fd-footer a.fd-logo .fd-logo-text { color: var(--fd-ink); }
.fd-footer-links a { display: block; }
.fd-footer-bottom { border-top: 1px solid var(--fd-line); margin-top: 48px; padding: 26px 0; font-size: .87rem; }
.fd-social {
  width: 40px; height: 40px; border-radius: 11px; display: inline-grid; place-items: center;
  border: 1px solid var(--fd-line); background: var(--fd-surface); color: var(--fd-ink);
  margin-right: .5rem; transition: all .2s ease;
}
.fd-social:hover { background: var(--fd-brand); color: #fff !important; border-color: var(--fd-brand); transform: translateY(-3px); }

/* ---------- misc ---------- */
.fd-divider { height: 1px; background: var(--fd-line); border: 0; opacity: 1; margin: 3rem 0; }
.fd-tech {
  padding: .55rem 1.05rem; border-radius: 10px; border: 1px solid var(--fd-line);
  background: var(--fd-surface); font-family: var(--fd-head); font-weight: 600; font-size: .9rem; color: var(--fd-ink);
  transition: all .2s ease; display: inline-block; margin: 0 .4rem .55rem 0;
}
.fd-tech:hover { border-color: var(--fd-brand); color: var(--fd-brand); transform: translateY(-3px); }

.fd-js .fd-reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s ease; }
.fd-reveal.in { opacity: 1; transform: none; }

.fd-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 13px;
  border: none; color: #fff; background: linear-gradient(135deg, var(--fd-brand), var(--fd-brand-2));
  display: grid; place-items: center; box-shadow: var(--fd-shadow);
  opacity: 0; visibility: hidden; transform: translateY(14px); transition: all .3s ease; z-index: 1030;
}
.fd-top.show { opacity: 1; visibility: visible; transform: none; }

.form-control, .form-select {
  border-radius: 11px; border: 1px solid var(--fd-line); padding: .8rem 1rem;
  background: var(--fd-surface); color: var(--fd-ink); font-size: .96rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--fd-brand); box-shadow: 0 0 0 .22rem color-mix(in srgb, var(--fd-brand) 16%, transparent);
  background: var(--fd-surface); color: var(--fd-ink);
}
.form-label { font-family: var(--fd-head); font-weight: 600; font-size: .9rem; color: var(--fd-ink); margin-bottom: .4rem; }

::selection { background: color-mix(in srgb, var(--fd-brand) 26%, transparent); color: var(--fd-ink); }

.fd-skip {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--fd-brand); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 10px 0;
}
.fd-skip:focus { left: 0; color: #fff; }
