/* Custom site styles */

:root {
  /* ─── Palette ─────────────────────────────────────────────────────────────
   * Taken from devfox demo1 (css/main.css :root). Its --base-skin and
   * --base-dark are already this site's secondary and primary, so the brand
   * pair is unchanged; what follows aligns the supporting colours — text,
   * muted text, borders, section fills and the footer — which had drifted into
   * a dozen one-off greys and blue-greys with no shared source.
   */
  --color-dark: #05255f;        /* devfox --base-dark, also its heading colour */
  --color-skin: #ff382f;        /* devfox --base-skin */
  --color-skin-dark: #dc251e;   /* hover; devfox has no darkened skin of its own */
  --color-skin-tint: #fff0ef;   /* skin at ~6% over white, for icon chips */
  --color-body: #676b72;        /* devfox --base-bodyfont-color */
  --color-muted: #848e9f;       /* devfox meta / placeholder text */
  --color-border: #e6e9ef;      /* devfox list and card borders */
  --color-grey: #f5f5f5;        /* devfox --base-grey */
  --color-decor: #e2e9f1;       /* devfox tinted fill, used for the step numerals */
  --color-footer: #000a20;      /* devfox .footer background */
  --color-on-dark: rgba(255, 255, 255, 0.65);   /* devfox footer text and links */

  --primary-color: var(--color-dark);
  --secondary-color: var(--color-skin);
  --bs-primary: #05255f;
  --bs-primary-rgb: 5, 37, 95;
  --bs-secondary: #ff382f;
  --bs-secondary-rgb: 255, 56, 47;

  /* Point Bootstrap's own tokens at the palette so utilities like
     .text-body-secondary and .border follow it instead of Bootstrap's greys. */
  --bs-body-color: var(--color-body);
  --bs-secondary-color: var(--color-muted);
  --bs-heading-color: var(--color-dark);
  --bs-border-color: var(--color-border);

    /* Type scale */
    --fs-h1: 48px; --lh-h1: 58px;
    --fs-h2: 32px; --lh-h2: 38px;
    --fs-h3: 24px; --lh-h3: 32px;
    --fs-h4: 20px; --lh-h4: 28px;
    --fs-h5: 18px; --lh-h5: 26px;
    --fs-h6: 16px; --lh-h6: 24px;

    --fs-panel-title: 32px; --lh-panel-title: 38px;
    --fs-body: 16px; --lh-body: 24px;
    --fs-lead: 18px; --lh-lead: 28px;
    --fs-small: 14px; --lh-small: 1.5;
    --fs-label: 12px; --lh-label: 1.4;
}

body {
  font-family: "Sulphur Point", Arial, sans-serif;
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-body);
}

/* ─── Headings ──────────────────────────────────────────────────────────────
 * The .h1–.h6 classes are restated alongside the elements because the pages
 * use them to size a heading independently of its level (e.g. <h2 class="h4">
 * for legal section headings), and Bootstrap's versions would otherwise win.
 */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  margin-bottom: 15px;   /* devfox */
  /* devfox headings are 600; 700 matches what every heading component in this
     file already sets, so the base and the components agree. */
  font-weight: 700;
  color: var(--color-dark);   /* devfox --base-headingfont-color */
}

/* Setting a heading colour above means headings on dark grounds no longer
   inherit their parent's white, so the coloured panels restate it. */
.text-white h1, .text-white h2, .text-white h3,
.text-white h4, .text-white h5, .text-white h6 { color: inherit; }

h1, .h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); }
h2, .h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
h3, .h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
h4, .h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); }
h5, .h5 { font-size: var(--fs-h5); line-height: var(--lh-h5); }
h6, .h6 { font-size: var(--fs-h6); line-height: var(--lh-h6); }

p { margin-bottom: 15px; }   /* devfox: p { margin: 0 0 15px } */

/* Bootstrap's .lead uses the shared scale instead of its fluid defaults. */
.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  font-weight: 400;
}

small, .small, .text-meta, .listing-meta, .location-meta, .category-meta, .date-meta {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  font-weight: 400;
}

.text-extra-small, .timestamp, .secondary-label, .legal-note {
  font-size: var(--fs-label);
  line-height: var(--lh-label);
}

/* Images carry width/height attributes so the browser can reserve their box
   before the bytes arrive. Those attributes are also presentational hints, so
   without this an image that CSS sizes with width:100% would render at its
   literal attribute height — a 1200x800 photo in a 624px column came out
   624x800, i.e. cropped to portrait by object-fit. height:auto hands the sizing
   back to CSS while keeping the intrinsic ratio for the reservation.
   Components that set their own height (.service-card img at 220px) still win
   on specificity. */
img { max-width: 100%; height: auto; }

/* devfox .fs-* utilities, for sizing a one-off without inventing a value. */
.fs-14 { font-size: 14px !important; line-height: 24px; }
.fs-15 { font-size: 15px !important; line-height: 25px; }
.fs-16 { font-size: 16px !important; line-height: 25px; }
.fs-17 { font-size: 17px !important; line-height: 28px; }
.fs-18 { font-size: 18px !important; line-height: 26px; }
.fs-20 { font-size: 20px !important; line-height: 28px; }
.fs-22 { font-size: 22px !important; line-height: 32px; }
.fs-24 { font-size: 24px !important; line-height: 34px; }
.fs-26 { font-size: 26px !important; line-height: 36px; }
.fs-28 { font-size: 28px !important; line-height: 38px; }
.fs-30 { font-size: 30px !important; line-height: 40px; }

/* Buttons — devfox .cmt-btn is 16px/600. Set through Bootstrap's own custom
   properties so padding and border-radius stay Bootstrap's. */
.btn, .btn-lg, .btn-sm { --bs-btn-font-size: 16px; }

/* Tablet */
@media (max-width: 991.98px) {
  :root {
    --fs-h1: 44px; --lh-h1: 53px;
    --fs-h2: 32px; --lh-h2: 38px;
    --fs-h3: 24px; --lh-h3: 32px;
    --fs-h4: 20px; --lh-h4: 28px;
    --fs-h5: 18px; --lh-h5: 26px;
    --fs-h6: 16px; --lh-h6: 24px;
    --fs-panel-title: 32px; --lh-panel-title: 38px;
    --fs-lead: 17px; --lh-lead: 27px;
  }
}

/* Phone */
@media (max-width: 767.98px) {
  :root {
    --fs-h1: 34px; --lh-h1: 41px;
    --fs-h2: 28px; --lh-h2: 34px;
    --fs-h3: 22px; --lh-h3: 28px;
    --fs-h4: 18px; --lh-h4: 24px;
    --fs-h5: 16px; --lh-h5: 24px;
    --fs-h6: 14px; --lh-h6: 21px;
    --fs-panel-title: 28px; --lh-panel-title: 34px;
    --fs-lead: 16px; --lh-lead: 26px;
  }
}

.letter-spacing { letter-spacing: 0.12em; }
.section-label { color: var(--secondary-color); font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.btn-brand { background: var(--secondary-color); border-color: var(--secondary-color); color: #fff; font-weight: 700; padding: 0.7rem 1.2rem; }
.btn-brand:hover, .btn-brand:focus { background: var(--color-skin-dark); border-color: var(--color-skin-dark); color: #fff; }
.text-link { color: var(--primary-color); font-weight: 700; text-decoration: none; }
.text-link:hover { color: var(--secondary-color); }

/* Page preloader */
.preloader {
  position: fixed;
  inset: 0; /* top: 0; right: 0; bottom: 0; left: 0; */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.preloader-logo {
  width: clamp(48px, 12vw, 120px);
  height: auto;
}

.navbar-brand,
.navbar-nav .nav-link,
.navbar-toggler {
  color: var(--primary-color);
}

.navbar-brand {
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* devfox desktop menu: 15px / 500. Below lg the menu collapses into a stacked
   panel, where devfox goes up to 16px for the larger tap target. */
.navbar-nav .nav-link {
  padding: 0.75rem 0.5rem;
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  letter-spacing: 0.025em;
}

@media (max-width: 991.98px) {
  .navbar-nav .nav-link { font-size: 16px; line-height: 24px; }
}

.navbar.sticky-top {
  background-color: #fff;
  box-shadow: 0 0.2rem 0.85rem rgb(5 37 95 / 0.1);
}

.navbar-brand:hover,
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary-color);
}

.hero-banner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  /* Devfox demo2 banner: 680px slide height; we keep it taller for the full hero */
  min-height: 680px;
  padding: 130px 0 100px;
  background: url("../img/hero.jpg") center / cover no-repeat;
  overflow: hidden;
}

/* Devfox-style dark overlay — rgba(0,17,62,0.35) base + deeper gradient */
.overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 37, 95, 0.90) 0%, rgba(5, 37, 95, 0.72) 60%, rgba(11, 58, 135, 0.60) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-banner .container {
  position: relative;
  z-index: 2;
}

/* Kicker pill — referenced from devfox breadcrumb/label treatment */
.hero-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: var(--fs-label);
  line-height: var(--lh-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-kicker i { color: var(--secondary-color); }

/*
 * Devfox banner h2 reference:
 *   desktop  87px / 112px  (.banner_slider_1)
 *   tablet   55px / 65px   (max-width:991px)
 *   mobile   33px / 46px   (max-width:600px)
 * We scale proportionally with clamp.
 */
.hero-title {
  max-width: 860px;
  margin: 18px 0 22px;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
}

/*
 * Devfox banner p reference: 21px / 30px (desktop), 16px / 26px (tablet)
 */
.hero-copy {
  max-width: 640px;
  margin-bottom: 36px;
  color: rgba(220, 221, 222, 0.90);
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
}

.btn-hero-outline {
  border: 2px solid rgba(255, 255, 255, 0.60);
  color: #fff;
  font-weight: 700;
  padding: 11px 30px;
  font-size: 16px;   /* devfox .cmt-btn */
  border-radius: 4px;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn-hero-outline:hover { border-color: #fff; background: #fff; color: var(--primary-color); }

/* Insight card */
.hero-insight {
  padding: 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-insight-icon {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--secondary-color);
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(255, 56, 47, 0.40);
}
/* Statement line in the hero insight card. It sat on Bootstrap's .h3 (28px),
   which on the new ladder is 30px — too heavy for a col-lg-4 card that already
   wraps to three lines. Sized between h4 and h5 instead. */
.hero-insight-lead { font-size: 22px; line-height: 32px; font-weight: 700; color: #fff; }
.hero-text-link { color: rgba(255, 255, 255, 0.88); font-weight: 700; text-decoration: none; transition: color 0.15s; }
.hero-text-link:hover { color: #fff; text-decoration: underline; }

/* Proof strip */
.proof-strip { position: relative; z-index: 2; margin-top: -3.5rem; }
.proof-strip .container { border-radius: 8px; background: #fff; box-shadow: 0 12px 40px rgba(5, 37, 95, 0.14); }
.proof-item { display: flex; flex-direction: column; gap: 4px; padding: 22px 18px; color: var(--color-body); font-size: 15px; line-height: 25px; }
.proof-item:not(:last-child) { border-right: 1px solid var(--color-border); }
.proof-item strong { color: var(--primary-color); font-size: 18px; font-weight: 700; line-height: 26px; }

/* ─── Page banner — inner pages ────────────────────────────────────────────
 * Devfox reference: .cmt-page-title-row-inner  padding: 200px 0 48px
 * h2: 40px / 52px, font-weight: 600
 * We keep proportional padding with clamp and cap the top at 160px.
 */
.page-banner {
  position: relative;
  overflow: hidden;
  padding: 160px 0 70px;
  background:
    linear-gradient(135deg, rgba(5, 37, 95, 0.92) 0%, rgba(11, 58, 135, 0.80) 100%),
    url("../img/hero.jpg") center / cover no-repeat;
  background-attachment: scroll;
}
.page-banner .container { position: relative; z-index: 1; }

/* Devfox: page-title h2 = 40px / 52px / weight 600 */
.page-banner h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: 700;
  max-width: 820px;
  margin-top: 10px;
  margin-bottom: 14px;
  color: #fff;
  letter-spacing: 0.2px;
}

/* Devfox body p = 15–16px / 25–26px; lead sits one step up */
.page-banner .lead {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.80);
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  text-decoration: none;
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  transition: color 0.15s;
}
.breadcrumb-link:hover { color: #fff; }
.service-detail-label { display: block; margin-top: 2rem; color: rgb(255 255 255 / .7); font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.content-image { width: 100%; min-height: 320px; border-radius: .75rem; object-fit: cover; box-shadow: 0 .75rem 2rem rgb(5 37 95 / .15); }
.detail-image-wrap { position: relative; }
.detail-image-badge { position: absolute; right: 1.25rem; bottom: 1.25rem; padding: .7rem 1rem; border-radius: .5rem; background: #fff; box-shadow: 0 .5rem 1.25rem rgb(5 37 95 / .18); color: var(--primary-color); font-weight: 700; }
.detail-image-badge i { margin-right: .4rem; color: var(--secondary-color); }
.feature-list-detailed { margin: 1.5rem 0 0; }
.feature-list-detailed li { align-items: flex-start; margin-bottom: 1rem; }
.feature-list-detailed li i { display: inline-grid; width: 1.45rem; height: 1.45rem; flex: 0 0 auto; place-items: center; margin: 0; border-radius: 50%; background: var(--color-skin-tint); font-size: 11px; }
.detail-process-section { background: var(--color-grey); }
.detail-step { position: relative; height: 100%; padding: 2rem; overflow: hidden; border-radius: .75rem; background: #fff; }
.detail-step > span { position: absolute; top: 1rem; right: 1.25rem; color: var(--color-decor); font-size: 36px; line-height: 1; font-weight: 700; }
.detail-step > i { display: inline-grid; width: 2.8rem; height: 2.8rem; place-items: center; margin-bottom: 1.25rem; border-radius: .6rem; background: var(--primary-color); color: #fff; font-size: 18px; }
.detail-step h3 { color: var(--primary-color); font-size: var(--fs-h5); line-height: var(--lh-h5); font-weight: 700; }
.detail-step p { margin: 0; color: var(--color-muted); }
.detail-contact-panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(1.75rem, 4vw, 3.25rem); border-radius: .75rem; background: linear-gradient(120deg, var(--secondary-color), #ed5d47); color: #fff; }
.detail-contact-panel h2 { margin: .3rem 0 .5rem; font-size: var(--fs-panel-title); line-height: var(--lh-panel-title); font-weight: 700; color: inherit; }
.detail-contact-panel p { color: rgb(255 255 255 / .82); }
.related-services-section { background: #fff; }
.related-service-links { display: flex; flex-wrap: wrap; gap: .75rem; }
.related-service-links a { display: inline-flex; align-items: center; gap: .65rem; padding: .75rem 1rem; border: 1px solid var(--color-border); border-radius: .5rem; color: var(--primary-color); font-weight: 700; text-decoration: none; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.related-service-links a:hover { border-color: var(--secondary-color); background: var(--color-skin-tint); color: var(--secondary-color); }
.related-service-links i { font-size: 12px; }

/* ─── Service detail: deliverables grid ──────────────────────────────────────
   The "what's included" cards. Sits on white between two grey sections, so the
   card carries a border rather than a shadow — a shadow on white against grey
   above and below reads as a rendering artefact rather than depth. */
.deliverables-section { background: #fff; }
.deliverable-card {
  height: 100%;
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  border-radius: .75rem;
  background: #fff;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.deliverable-card:hover {
  border-color: var(--color-skin);
  transform: translateY(-3px);
  box-shadow: 0 .65rem 1.5rem rgb(5 37 95 / .08);
}
.deliverable-card > i {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  margin-bottom: 1.1rem;
  border-radius: .55rem;
  background: var(--color-skin-tint);
  color: var(--color-skin);
  font-size: 16px;
}
.deliverable-card h3 { margin-bottom: .5rem; font-size: var(--fs-h5); line-height: var(--lh-h5); }
.deliverable-card p { margin-bottom: 0; color: var(--color-muted); }

/* ─── Case study cards ───────────────────────────────────────────────────────
   Same shell as a service card, but not itself a link — the stretched-link on
   the related service inside it does that, so the article stays an <article>. */
.case-card {
  overflow: hidden;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 .25rem 1rem rgb(5 37 95 / .08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.case-card:hover { transform: translateY(-.35rem); box-shadow: 0 .75rem 1.5rem rgb(5 37 95 / .16); }
.case-card .service-image-wrap img { width: 100%; height: 200px; object-fit: cover; transition: transform .35s ease; }
.case-card:hover .service-image-wrap img { transform: scale(1.07); }
.case-card .border-top { border-color: var(--color-border) !important; }

/* Sector pill, laid over the image rather than stacked above the title —
   it is metadata about the card, not the first line of its content. */
.case-tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: .35rem .75rem;
  border-radius: 2rem;
  background: rgb(5 37 95 / .88);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ─── Service detail: FAQ accordion ──────────────────────────────────────────
   Bootstrap gives .accordion-button no font-size of its own and these sit in an
   <h3 class="accordion-header">, so without a size here they would inherit the
   h3 step (30px) — the same trap as the sitemap accordion. */
.faq-section { background: var(--color-grey); }
.faq-accordion .accordion-item {
  margin-bottom: .75rem;
  border: 1px solid var(--color-border);
  border-radius: .6rem !important;
  overflow: hidden;
}
.faq-accordion .accordion-button {
  padding: 1.15rem 1.35rem;
  background: #fff;
  color: var(--color-dark);
  font-size: var(--fs-h6);
  line-height: var(--lh-h6);
  font-weight: 700;
}
.faq-accordion .accordion-button:not(.collapsed) { background: #fff; color: var(--color-skin); box-shadow: none; }
.faq-accordion .accordion-button:focus { border-color: transparent; box-shadow: 0 0 0 .2rem rgb(255 56 47 / .15); }
.faq-accordion .accordion-button::after { width: 1rem; height: 1rem; background-size: 1rem; }
.faq-accordion .accordion-body { padding: 0 1.35rem 1.35rem; color: var(--color-body); }
.faq-accordion .accordion-header { margin-bottom: 0; }

.service-card {
  display: block;
  overflow: hidden;
  height: 100%;
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 1rem rgb(5 37 95 / 0.08);
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.service-card:hover {
  color: inherit;
  transform: translateY(-0.35rem);
  box-shadow: 0 0.75rem 1.5rem rgb(5 37 95 / 0.16);
}

.service-card:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 3px;
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-intro { margin-top: -2rem; padding: 2rem 0; background: var(--secondary-color); color: #fff; }
.service-intro h2 { margin: 0; font-size: var(--fs-panel-title); line-height: var(--lh-panel-title); font-weight: 700; color: inherit; }
.service-intro p { color: rgb(255 255 255 / .85); font-size: var(--fs-lead); line-height: var(--lh-lead); }
.eyebrow-light { color: rgb(255 255 255 / .8) !important; font-size: var(--fs-label) !important; line-height: var(--lh-label); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.service-card-featured { border: 1px solid transparent; }
.service-card-featured:hover { border-color: rgb(255 56 47 / .3); }
.service-image-wrap { position: relative; overflow: hidden; }
.service-card-featured img { transition: transform .35s ease; }
.service-card-featured:hover img { transform: scale(1.07); }
.service-icon { position: absolute; right: 1.25rem; bottom: -1.45rem; display: inline-grid; width: 3rem; height: 3rem; place-items: center; border: 3px solid #fff; border-radius: .7rem; background: var(--secondary-color); color: #fff; box-shadow: 0 .35rem .9rem rgb(5 37 95 / .16); }
.service-number { display: block; margin-bottom: .5rem; color: var(--color-muted); font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 700; letter-spacing: .1em; }
.services-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(1.75rem, 4vw, 3rem); border-radius: .75rem; background: var(--primary-color); color: #fff; }
.services-cta h2 { margin: .3rem 0 .5rem; font-size: var(--fs-panel-title); line-height: var(--lh-panel-title); font-weight: 700; color: inherit; }
.services-cta p { color: rgb(255 255 255 / .75); }

.service-card h3 {
  color: var(--primary-color);
}

.service-card h2 { color: var(--primary-color); }

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.25rem;
  color: var(--primary-color);
  font-size: var(--fs-label);
  line-height: var(--lh-label);
  font-weight: 700;
}

.service-card-link i {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--primary-color);
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 12px;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.service-card:hover .service-card-link i,
.service-card:focus-visible .service-card-link i {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateX(0.2rem);
}

.services-carousel .owl-nav button.owl-next,
.services-carousel .owl-nav button.owl-prev {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin: 0 0.25rem;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 16px;
  transition: background-color 0.2s ease;
}

.services-carousel .owl-nav button.owl-next:hover,
.services-carousel .owl-nav button.owl-prev:hover {
  background-color: var(--secondary-color);
  color: #fff;
}

.approach-section { background: var(--color-grey); }
.process-card { position: relative; height: 100%; padding: 2rem; overflow: hidden; border-radius: .75rem; background: #fff; box-shadow: 0 .25rem 1rem rgb(5 37 95 / .06); }
.process-card > span { position: absolute; top: 1rem; right: 1.4rem; color: var(--color-decor); font-size: 36px; font-weight: 700; line-height: 1; }
.process-card > i { display: inline-grid; width: 3rem; height: 3rem; place-items: center; margin-bottom: 1.5rem; border-radius: .6rem; background: var(--color-skin-tint); color: var(--secondary-color); font-size: 20px; }
.process-card h3 { color: var(--primary-color); font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: 700; }
.process-card p { margin-bottom: 0; color: var(--color-muted); }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2rem, 5vw, 4rem); border-radius: .9rem; background: linear-gradient(120deg, var(--color-dark), var(--color-footer)); }
/* The closing CTA is the loudest block on a page, so it takes the section
   heading size rather than the smaller panel size the inline CTAs use. */
.cta-panel h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; }
.cta-panel p { color: rgb(255 255 255 / .75); }

.value-card { height: 100%; padding: 2rem; background: #fff; border-radius: .75rem; box-shadow: 0 .25rem 1rem rgb(5 37 95 / .08); }
.value-card > i, .contact-detail > i { color: var(--secondary-color); font-size: 26px; margin-bottom: 1rem; }
.feature-list { padding: 0; list-style: none; }
.feature-list li { display: flex; gap: .75rem; margin-bottom: .7rem; font-weight: 500; }
.feature-list i { color: var(--secondary-color); margin-top: .25rem; }
.contact-form { padding: 2rem; border-radius: .75rem; background: var(--color-grey); }
.form-control { border-color: var(--color-border); padding: .7rem .85rem; }
.form-select { border-color: var(--color-border); padding: .7rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--secondary-color); box-shadow: 0 0 0 .2rem rgb(255 56 47 / .15); }
.contact-detail { display: flex; gap: 1rem; margin-top: 2rem; align-items: flex-start; }
.contact-detail > i { margin: .2rem 0 0; }
.contact-detail a { display: block; color: var(--primary-color); text-decoration: none; }
.social-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .55rem; }
.contact-detail .social-links a { display: inline-grid; width: 2.25rem; height: 2.25rem; place-items: center; border-radius: 50%; background: var(--color-skin-tint); color: var(--secondary-color); transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.contact-detail .social-links a:hover, .contact-detail .social-links a:focus-visible { background: var(--secondary-color); color: #fff; transform: translateY(-2px); }
/* devfox footers are near-black (#000a20), not the brand navy, with text and
   links at 65% white and the skin colour on hover. */
.site-footer { background: var(--color-footer); color: var(--color-on-dark); }
.footer-brand { color: #fff; font-size: 24px; line-height: 32px; font-weight: 700; text-decoration: none; }
/* devfox footer lists are 16px — same as body, so no size of their own. */
.site-footer a:not(.footer-brand) { color: var(--color-on-dark); margin-left: 1.25rem; text-decoration: none; }
.site-footer a:hover { color: var(--secondary-color); }

/* Footer links. Flex + gap rather than the inherited margin-left above, which
   would push the row off-centre once it is centred on small screens. Centred
   while the columns are stacked; right-aligned from lg, where the brand sits
   beside it. */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; }
.site-footer .footer-links a { margin-left: 0; }
@media (min-width: 992px) { .footer-links { justify-content: flex-end; } }

/* ---------------------------------------------------------------
   HTML sitemap (/sitemap)
   Thousands of links, so the styling is about scanning: generous
   hit areas, clear grouping, and links that wrap into a flow
   rather than a single very long column.
   --------------------------------------------------------------- */
.sitemap-block { padding-bottom: 3rem; margin-bottom: 3rem; border-bottom: 1px solid var(--color-border); }
.sitemap-block:last-of-type { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }

.sitemap-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.sitemap-links a {
  padding: .35rem .85rem;
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  background: var(--color-grey);
  color: var(--primary-color);
  font-size: var(--fs-label);
  line-height: var(--lh-label);
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.sitemap-links a:hover,
.sitemap-links a:focus-visible { border-color: var(--primary-color); background: var(--primary-color); color: #fff; }

.sitemap-service-card {
  display: flex;
  gap: .85rem;
  align-items: center;
  height: 100%;
  padding: 1rem 1.15rem;
  border: 1px solid var(--color-border);
  border-radius: .75rem;
  background: var(--color-grey);
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.sitemap-service-card i { color: var(--secondary-color); font-size: 18px; }
.sitemap-service-card:hover,
.sitemap-service-card:focus-visible {
  border-color: var(--primary-color);
  box-shadow: 0 .5rem 1.25rem rgba(5, 37, 95, .1);
  transform: translateY(-2px);
  color: var(--primary-color);
}

.sitemap-accordion .accordion-item { border: 1px solid var(--color-border); border-radius: .75rem !important; margin-bottom: .75rem; overflow: hidden; }
/* The button is wrapped in an <h3 class="accordion-header">, and Bootstrap
   leaves .accordion-button to inherit — without a size of its own it would come
   out at the h3 size (30px). Sized as a card title instead. */
.sitemap-accordion .accordion-button { padding: 1rem 1.25rem; font-size: var(--fs-h6); line-height: var(--lh-h6); font-weight: 600; color: var(--primary-color); background: var(--color-grey); }
.sitemap-accordion .accordion-header { margin-bottom: 0; }
.sitemap-accordion .accordion-button:not(.collapsed) { background: var(--primary-color); color: #fff; box-shadow: none; }
.sitemap-accordion .accordion-button:not(.collapsed) i { color: #fff; }
.sitemap-accordion .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(5, 37, 95, .15); }
.sitemap-accordion .accordion-button i { color: var(--secondary-color); }
.sitemap-count { margin-right: .75rem; color: var(--color-muted); font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 500; white-space: nowrap; }
.sitemap-accordion .accordion-button:not(.collapsed) .sitemap-count { color: rgba(255, 255, 255, .75); }

.sitemap-state + .sitemap-state { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.sitemap-state-name { margin-bottom: .75rem; color: var(--color-muted); font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

@media (max-width: 575.98px) {
  .sitemap-count { display: none; }
  .sitemap-links a { font-size: var(--fs-small); line-height: var(--lh-small); }
}
.legal-section { background: #fff; }
.legal-card { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--color-border); border-radius: .75rem; background: var(--color-grey); }
.legal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; }
.legal-grid > div { padding-bottom: 1rem; border-bottom: 1px solid var(--color-border); }
.legal-grid-wide { grid-column: 1 / -1; }
.legal-grid dt { margin-bottom: .25rem; color: var(--color-muted); font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.legal-grid dd { margin: 0; color: var(--primary-color); font-size: var(--fs-lead); line-height: var(--lh-lead); font-weight: 600; }
.legal-note { margin-top: 1rem; color: var(--color-muted); font-size: var(--fs-label); line-height: var(--lh-label); }

/* Sub-headings inside a legal section. These were <h3 class="h6 text-uppercase">,
   which on the new ladder is 18px — too loud set in caps under an h4-sized
   section heading. They read as labels, so they are sized as labels. */
.legal-subhead {
  margin-bottom: .5rem;
  color: var(--color-muted);
  font-size: var(--fs-label);
  line-height: var(--lh-label);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Fixed WhatsApp contact button */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1030;
  display: inline-grid;
  width: 3.75rem;
  height: 3.75rem;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0.5rem 1.25rem rgb(0 0 0 / 0.22);
  color: #fff;
  font-size: 36px;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.whatsapp-float::before {
  position: absolute;
  inset: -0.35rem;
  border: 2px solid #25d366;
  border-radius: inherit;
  content: "";
  opacity: 0;
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float::after {
  position: absolute;
  right: calc(100% + 0.75rem);
  padding: 0.4rem 0.65rem;
  border-radius: 0.3rem;
  background: var(--color-dark);
  color: #fff;
  content: attr(data-tooltip);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateX(0.25rem);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  white-space: nowrap;
}

.whatsapp-float:hover {
  background: #1ebe5d;
  color: #fff;
  transform: translateY(-0.2rem) scale(1.04);
}

.whatsapp-float:hover::after,
.whatsapp-float:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-float:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
}

@keyframes whatsapp-pulse {
  0%,
  40% {
    opacity: 0.7;
    transform: scale(0.9);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}

@media (max-width: 575.98px) {
  .hero-banner { min-height: 560px; padding: 100px 0 80px; }
  .hero-title { margin-bottom: 0; }
  /* Devfox mobile: p hidden on small slides — we keep but shrink */
  .hero-copy { font-size: 16px; line-height: 26px; }
  .page-banner { padding: 100px 0 50px; }
  .page-banner .lead { font-size: 15px; line-height: 25px; }
  .proof-strip { margin-top: 0; }
  .proof-strip .container { border-radius: 0; box-shadow: none; }
  .proof-item:not(:last-child) { border-right: 0; border-bottom: 1px solid var(--color-border); }
  .cta-panel { align-items: flex-start; flex-direction: column; }
  .services-cta { align-items: flex-start; flex-direction: column; }
  .detail-contact-panel { align-items: flex-start; flex-direction: column; }
  .detail-image-badge { right: .75rem; bottom: .75rem; }
  .legal-grid { grid-template-columns: 1fr; gap: 1rem; }
  .legal-grid-wide { grid-column: auto; }
  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
    width: 3.4rem;
    height: 3.4rem;
    font-size: 32px;
  }
  .whatsapp-float::after {
    display: none;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .hero-copy  { font-size: 16px; line-height: 26px; }
  .hero-banner { padding: 110px 0 90px; }
  .page-banner { padding: 130px 0 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float,
  .whatsapp-float::after {
    transition: none;
  }

  .whatsapp-float::before {
    animation: none;
  }
}
