/* ============================================
   Arqi Networks — Custom Styles
   ============================================ */

/* ---------- Font (self-hosted Plus Jakarta Sans, variable weight) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../assets/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #04466b;
  --navy-dark: #023047;
  --navy-mid: #0a5a7e;
  --cyan: #2db7d6;
  --cyan-soft: #e8f7fb;
  --cyan-hover: #249db8;
  --text: #2c3e50;
  --text-muted: #60717e; /* darkened slightly from #6b7c8a to meet WCAG AA contrast on white and soft backgrounds */
  --bg: #ffffff;
  --bg-soft: #f5f9fb;
  --border: #e2eef3;
  --shadow: 0 10px 40px rgba(4, 70, 107, 0.1);
  --shadow-sm: 0 4px 20px rgba(4, 70, 107, 0.08);
  --radius: 16px;
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button {
  cursor: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--navy);
}

/* ---------- Custom Cursor ---------- */
.cursor-dot,
.cursor-ring {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(45, 183, 214, 0.55);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, opacity 0.2s ease;
}

.cursor-ring.is-hover {
  width: 52px;
  height: 52px;
  border-color: var(--navy);
}

.cursor-dot.is-hover {
  background: var(--navy);
  width: 10px;
  height: 10px;
}

@media (hover: none), (max-width: 991.98px) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }

  body.has-custom-cursor,
  body.has-custom-cursor a,
  body.has-custom-cursor button {
    cursor: auto;
  }
}

/* ---------- Buttons ---------- */
.btn-pill {
  border-radius: 50px !important;
  padding: 0.7rem 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-accent {
  background: var(--cyan);
  border: none;
  color: #fff;
}

.btn-accent:hover,
.btn-accent:focus {
  background: var(--cyan-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(45, 183, 214, 0.35);
}

.btn-navy {
  background: var(--navy);
  border: none;
  color: #fff;
}

.btn-navy:hover,
.btn-navy:focus {
  background: var(--navy-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(4, 70, 107, 0.3);
}

.btn-light.btn-pill {
  font-weight: 700;
  color: var(--navy);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cyan);
}

.link-more:hover {
  color: var(--navy);
  gap: 0.55rem;
}

/* ---------- Floating Navbar ---------- */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  z-index: 1040;
  padding: 35px 0 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  pointer-events: none;
  transition: padding 0.25s ease;
}

.site-header > * {
  pointer-events: auto;
}

.site-header.is-scrolled {
  padding-top: 8px !important;
}

.floating-nav.navbar {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  --bs-navbar-padding-y: 0;
  --bs-navbar-padding-x: 0;
}

.floating-nav .container {
  max-width: 1160px;
  padding-left: 1rem;
  padding-right: 1rem;
}

.nav-pill {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px !important;
  background: #fff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(4, 70, 107, 0.08) !important;
  border-radius: 999px !important;
  padding: 1rem 1rem 1rem 1.1rem !important;
  box-shadow: none !important;
  gap: 0.75rem;
  overflow: visible;
  transition: border-color 0.25s ease;
}

.site-header.is-scrolled .nav-pill {
  background: #fff !important;
  border-color: rgba(4, 70, 107, 0.1) !important;
  box-shadow: none !important;
}

.floating-nav .navbar-brand {
  padding: 0;
  margin: 0;
  line-height: 1;
}

.floating-nav .navbar-nav,
.floating-nav .nav-item,
.floating-nav .collapse {
  overflow: visible;
}

.navbar-brand img {
  height: 34px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
}

@media (max-width: 575.98px) {
  .navbar-brand img {
    height: 30px;
    max-width: 145px;
  }
}

.floating-nav .nav-link {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.4rem 0.8rem !important;
  position: relative;
  line-height: 1.2;
}

.floating-nav .nav-link:hover,
.floating-nav .nav-link.active {
  color: var(--cyan);
}

.floating-nav .btn-accent {
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
  border-radius: 999px !important;
}

.floating-nav .dropdown-toggle::after {
  margin-left: 0.35em;
  vertical-align: 0.15em;
}

.services-dropdown {
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 0.5rem 0;
  margin-top: 0 !important;
  min-width: 240px;
}

.services-dropdown .dropdown-item {
  color: var(--navy);
  font-weight: 500;
  padding: 0.55rem 1.25rem;
  font-size: 0.92rem;
}

.services-dropdown .dropdown-item:hover,
.services-dropdown .dropdown-item:focus {
  background: var(--cyan-soft);
  color: var(--cyan);
}

/* Desktop: keep dropdown open while moving from link → menu (no hover gap) */
@media (min-width: 992px) {
  .floating-nav .nav-item.dropdown {
    position: relative;
  }

  /* Invisible bridge so the pointer never "falls off" hover */
  .floating-nav .nav-item.dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 16px;
    display: none;
  }

  .floating-nav .nav-item.dropdown:hover::before,
  .floating-nav .nav-item.dropdown:focus-within::before {
    display: block;
  }

  .floating-nav .nav-item.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
  }

  .floating-nav .nav-item.dropdown:hover .dropdown-menu,
  .floating-nav .nav-item.dropdown:focus-within .dropdown-menu {
    display: block;
  }

  .floating-nav .nav-item.dropdown .dropdown-toggle::after {
    pointer-events: none;
  }
}

.navbar-toggler {
  border: none;
  box-shadow: none !important;
  padding: 0.35rem 0.5rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2304466b' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.offcanvas .nav-link {
  color: var(--navy);
  font-weight: 600;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.offcanvas .nav-link.active {
  color: var(--cyan);
}

.btn-outline-navy {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}

.btn-outline-navy:hover,
.btn-outline-navy:focus {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ---------- Page banners ---------- */
.page-banner,
.page-hero.page-banner {
  position: relative;
  padding: clamp(9rem, 17vh, 11rem) 0 clamp(4rem, 8vh, 6rem);
  min-height: clamp(480px, 62svh, 680px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: none;
  background-color: var(--navy-dark);
  background-image: url("../assets/images/stock/banner-services.webp"); /* fallback */
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.page-banner::before {
  display: none;
}

.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(2, 48, 71, 0.78) 0%,
    rgba(4, 70, 107, 0.72) 50%,
    rgba(2, 48, 71, 0.68) 100%
  );
  pointer-events: none;
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  color: #fff;
  font-weight: 800;
  font-size: clamp(2.4rem, 4.5vw, 3.75rem);
  margin-bottom: 0.85rem;
  max-width: 780px;
  line-height: 1.15;
}

.page-banner p {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  max-width: 680px;
  margin: 0;
}

.page-banner .breadcrumb-nav {
  color: rgba(255, 255, 255, 0.75);
}

.page-banner .breadcrumb-nav a {
  color: var(--cyan);
}

.page-banner .breadcrumb-nav a:hover {
  color: #fff;
}

.page-banner .breadcrumb-nav span {
  color: rgba(255, 255, 255, 0.55);
}

/* Legacy alias — only for non-banner page heroes */
.page-hero:not(.page-banner) {
  padding: calc(var(--header-h) + 1.75rem) 0 2.75rem;
  background:
    linear-gradient(180deg, #f0f8fb 0%, #ffffff 100%),
    radial-gradient(ellipse 50% 60% at 90% 10%, rgba(45, 183, 214, 0.12), transparent 60%);
  border-bottom: 1px solid var(--border);
}

.page-hero:not(.page-banner) h1 {
  color: var(--navy);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.page-hero:not(.page-banner) p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0;
}

.breadcrumb-nav {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.breadcrumb-nav a {
  color: var(--cyan);
}

.breadcrumb-nav span {
  margin: 0 0.35rem;
}

.cta-banner-static {
  transform: none;
}

.contact-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-form-card .form-label {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
}

.contact-page-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text);
}

.contact-page-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  color: var(--text);
}

.contact-page-list a {
  color: var(--navy) !important;
  font-weight: 600;
  text-decoration: none;
  opacity: 1;
  visibility: visible;
}

.contact-page-list a:hover,
.contact-page-list a:focus {
  color: var(--cyan) !important;
  text-decoration: underline;
}

.contact-page-list i {
  color: var(--cyan);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.contact-page-list strong {
  color: var(--navy);
}

.services-dropdown .dropdown-item.active {
  background: var(--cyan-soft);
  color: var(--cyan);
  font-weight: 600;
}

.service-detail-img {
  width: 100%;
  height: clamp(300px, 36vw, 460px);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-points {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.service-points li {
  margin-bottom: 0.55rem;
}

.service-media-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-media-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  color: inherit;
}

.service-media-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-media-body {
  padding: 1.35rem 1.5rem 1.5rem;
}

.service-media-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.service-media-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.about-img {
  width: 100%;
  height: clamp(320px, 38vw, 480px);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.project-card img,
.blog-card img {
  object-fit: cover;
}

/* ---------- Sections common ---------- */
.section-pad {
  padding: 5.5rem 0;
}

.bg-soft {
  background: var(--bg-soft);
}

.section-eyebrow {
  display: inline-block;
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  color: var(--navy);
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.section-text-narrow {
  max-width: 640px;
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  padding: 3rem 0 4rem;
  min-height: auto;
  background: linear-gradient(180deg, #f8fcfe 0%, #ffffff 55%, #f5f9fb 100%);
  overflow: hidden;
}

.hero-section-compact {
  min-height: 100svh;
  padding-top: clamp(9rem, 15vh, 11rem);
  padding-bottom: clamp(4rem, 8vh, 6rem);
}

.hero-section-compact .min-vh-hero {
  min-height: calc(100svh - clamp(13rem, 23vh, 17rem));
}

.hero-section-compact .hero-title {
  font-size: clamp(2.35rem, 3.5vw, 3.75rem);
  max-width: 12em;
}

.hero-section-compact .hero-lead {
  max-width: 40rem;
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  line-height: 1.8;
}

.hero-section-compact .hero-illustration {
  width: min(100%, 660px);
  margin-inline: auto;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-waves {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(45, 183, 214, 0.07), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(4, 70, 107, 0.06), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23e8f7fb' fill-opacity='0.55' d='M0,192L48,176C96,160,192,128,288,133.3C384,139,480,181,576,186.7C672,192,768,160,864,138.7C960,117,1056,107,1152,122.7C1248,139,1344,181,1392,202.7L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E")
      no-repeat bottom center / 100% auto;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.min-vh-hero {
  min-height: calc(100vh - var(--header-h) - 4rem);
}

.hero-title {
  color: var(--navy);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--cyan);
  color: #fff;
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(45, 183, 214, 0.4);
  transition: transform 0.25s ease, background 0.25s ease;
  position: relative;
}

.btn-play::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(45, 183, 214, 0.35);
  animation: pulse-ring 2s ease-out infinite;
}

.btn-play:hover {
  background: var(--navy);
  transform: scale(1.06);
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.25); opacity: 0; }
}

.hero-illustration {
  max-width: 100%;
  filter: drop-shadow(0 20px 40px rgba(4, 70, 107, 0.15));
  animation: float-y 6s ease-in-out infinite;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-illustration,
  .btn-play::after {
    animation: none;
  }
}

/* ---------- Clients marquee ---------- */
.clients-section {
  padding: 2.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.clients-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.logo-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 35s linear infinite;
  align-items: center;
}

.logo-track img {
  height: 48px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s ease, filter 0.2s ease;
  filter: grayscale(0.2);
}

.logo-track img:hover {
  opacity: 1;
  filter: none;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }
}

/* ---------- About ---------- */
.feature-list-block {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  height: 100%;
  border: 1px solid var(--border);
}

.feature-list-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-list-title i {
  color: var(--cyan);
  font-size: 1.2rem;
}

.feature-list-block ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.feature-list-block li {
  margin-bottom: 0.4rem;
}

/* ---------- Flip cards ---------- */
.flip-card {
  perspective: 1000px;
  height: 280px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flip-card-front {
  background: #fff;
  border: 1px solid var(--border);
}

.flip-card-back {
  background: linear-gradient(145deg, var(--navy), var(--navy-mid));
  color: #fff;
  transform: rotateY(180deg);
}

.flip-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--cyan-soft);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}

.flip-card-front h3,
.flip-card-back h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.flip-card-back h3 {
  color: #fff;
}

.flip-card-front p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.flip-card-back p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.flip-card-back .link-more {
  color: #fff;
}

@media (hover: none) {
  .flip-card {
    height: 280px;
    cursor: pointer;
  }

  .flip-card:hover .flip-card-inner,
  .flip-card:focus-within .flip-card-inner {
    transform: none !important;
  }

  .flip-card.is-flipped .flip-card-inner {
    transform: rotateY(180deg) !important;
  }
}

/* ---------- Stats ---------- */
.stats-section {
  background:
    linear-gradient(135deg, rgba(4, 70, 107, 0.94), rgba(10, 90, 126, 0.92)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%232db7d6' stroke-opacity='0.15'%3E%3Cpath d='M0 30h60M30 0v60'/%3E%3C/g%3E%3C/svg%3E");
  color: #fff;
}

.stats-section .section-eyebrow {
  color: var(--cyan);
}

.stats-section .section-title {
  color: #fff;
}

.stat-item {
  padding: 1.5rem 1rem;
}

.stat-number {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--cyan);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* ---------- Service cards ---------- */
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(45, 183, 214, 0.35);
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan-soft), #d4f0f8);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  margin-bottom: 1.15rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--cyan);
  color: #fff;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}

/* ---------- Why ---------- */
.why-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--cyan-soft);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.why-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.why-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Projects ---------- */
.project-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-body {
  padding: 1.35rem 1.5rem 1.6rem;
}

.project-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.project-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Blogs ---------- */
.blog-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.blog-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.blog-body {
  padding: 1.35rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
}

.blog-tag {
  background: var(--cyan-soft);
  color: var(--cyan);
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}

.blog-meta time {
  color: var(--text-muted);
}

.blog-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.blog-body h3 a {
  color: inherit;
  text-decoration: none;
}

.blog-body h3 a:hover {
  color: var(--cyan);
}

.blog-image-link {
  display: block;
  overflow: hidden;
}

.article-hero {
  padding: clamp(9rem, 17vh, 11rem) 0 clamp(4rem, 8vh, 6rem);
  min-height: clamp(440px, 58svh, 640px);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff;
}

.article-hero .breadcrumb-nav,
.article-hero .breadcrumb-nav a {
  color: rgba(255, 255, 255, 0.75);
}

.article-hero h1 {
  max-width: 900px;
  margin: 1rem 0;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.12;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.article-meta time {
  color: rgba(255, 255, 255, 0.75);
}

.article-summary {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
}

.article-container {
  max-width: 900px;
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.article-cover {
  width: 100%;
  height: clamp(260px, 48vw, 500px);
  margin-bottom: 3rem;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(4, 70, 107, 0.12);
}

.article-content {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.85;
}

.article-content h2 {
  margin: 2.5rem 0 1rem;
  color: var(--navy);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 750;
}

.article-content p {
  margin-bottom: 1.35rem;
}

.article-back {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.blog-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  flex: 1;
  margin-bottom: 1rem;
}

/* ---------- CTA ---------- */
.cta-section {
  padding: 0 0 0;
  margin-top: -1px;
}

.cta-banner {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy-mid) 50%, #0a7a9e);
  border-radius: 24px;
  padding: 3.5rem 2rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  transform: translateY(2.5rem);
  box-shadow: var(--shadow);
}

.cta-banner::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(45, 183, 214, 0.15);
  top: -80px;
  right: -60px;
}

.cta-banner h2 {
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
  position: relative;
}

.cta-banner p {
  max-width: 520px;
  margin: 0 auto 1.5rem;
  opacity: 0.9;
  position: relative;
}

.cta-banner .btn {
  position: relative;
}

/* ---------- Contact ---------- */
.contact-strip {
  padding-top: 6rem;
  background: var(--bg-soft);
}

.contact-form .form-control {
  border-radius: 12px;
  border-color: var(--border);
  padding: 0.8rem 1rem;
  font-family: inherit;
}

.contact-form .form-control:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 0.2rem rgba(45, 183, 214, 0.2);
}

.contact-map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--bg-soft);
}

.contact-map {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

@media (max-width: 575.98px) {
  .contact-map {
    height: 280px;
  }
}

.form-local-notice {
  background: #fff8e6;
  border: 1px solid #f0d78c;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #7a5c00;
  margin-bottom: 1rem;
}

.form-local-notice i {
  color: #d4a017;
  margin-right: 0.35rem;
}

.form-sent-banner {
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(45, 183, 214, 0.35);
  background: var(--cyan-soft);
  color: var(--navy);
  font-weight: 500;
}

.form-feedback {
  font-size: 0.9rem;
  color: var(--cyan);
  font-weight: 600;
}

.form-feedback.is-error {
  color: #c0392b;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 0;
}

.footer-title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.footer-title a {
  color: #fff;
  text-decoration: none;
}

.footer-title a:hover {
  color: var(--cyan);
}

.footer-about {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  max-width: 340px;
}

.social-links {
  display: flex;
  gap: 0.65rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
  background: var(--cyan);
  color: #fff;
}

.footer-heading {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.15rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-note {
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.newsletter-form .form-control {
  border-radius: 50px !important;
  border: none;
  padding-left: 1.1rem;
  width: 100%;
}

.newsletter-form .btn {
  border-radius: 50px !important;
  padding-inline: 1.1rem;
  width: 100%;
}

.newsletter-form .input-group {
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.footer-contact li {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer-contact i {
  color: var(--cyan);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.footer-contact a {
  color: #ffffff !important;
  text-decoration: none;
  opacity: 1;
  visibility: visible;
}

.footer-contact a:hover,
.footer-contact a:focus {
  color: var(--cyan) !important;
  text-decoration: underline;
}

.site-footer .footer-links a {
  color: #ffffff;
  opacity: 0.9;
}

.site-footer .footer-links a:hover {
  color: var(--cyan);
  opacity: 1;
}

.footer-bottom {
  margin-top: 3rem;
  padding: 1.35rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.wa-bubble {
  background: #fff;
  color: var(--navy);
  font-size: 0.85rem;
  padding: 0.55rem 0.95rem;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.whatsapp-float:hover .wa-bubble,
.whatsapp-float:focus .wa-bubble {
  opacity: 1;
  transform: translateX(0);
}

.wa-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease;
}

.whatsapp-float:hover .wa-icon {
  transform: scale(1.08);
}

@media (min-width: 992px) {
  .wa-bubble {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 575.98px) {
  .wa-bubble {
    display: none;
  }
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991.98px) {
  .hero-section,
  .hero-section-compact {
    min-height: auto;
    padding-top: 7.5rem;
    padding-bottom: 4rem;
  }

  .page-banner {
    min-height: clamp(440px, 56svh, 560px);
    padding-top: 7.5rem;
    padding-bottom: 4rem;
  }

  .page-banner h1 {
    max-width: 15em;
    font-size: clamp(2.2rem, 6vw, 3.25rem);
  }
  .min-vh-hero,
  .hero-section-compact .min-vh-hero {
    min-height: auto;
  }

  .hero-section-compact .hero-title {
    max-width: 15em;
    margin-top: 0;
    font-size: clamp(2.15rem, 5.5vw, 3.25rem);
  }

  .hero-illustration {
    margin-top: 2.75rem;
    max-width: 500px;
    margin-inline: auto;
    animation: none;
  }

  .section-pad {
    padding: 4rem 0;
  }

  .service-detail-img,
  .about-img {
    height: clamp(300px, 56vw, 440px);
  }

  .article-hero {
    min-height: auto;
    padding: 7.5rem 0 4rem;
  }

  .cta-banner {
    transform: translateY(1.5rem);
    padding: 2.5rem 1.5rem;
  }

  .nav-pill {
    border-radius: 18px !important;
    min-height: 52px !important;
    padding: 0.35rem 0.7rem !important;
  }

  .site-header {
    padding-top: 8px !important;
  }

  .site-header.is-scrolled {
    padding-top: 6px !important;
  }
}

@media (max-width: 575.98px) {
  .hero-section,
  .hero-section-compact {
    padding-top: 6.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-section-compact .hero-title {
    font-size: clamp(2rem, 10vw, 2.65rem);
    line-height: 1.12;
  }

  .hero-section-compact .hero-lead {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }

  .hero-illustration {
    margin-top: 2.5rem;
    max-width: min(100%, 360px);
  }

  .hero-actions .btn-pill {
    width: auto;
    text-align: center;
  }

  .page-banner {
    min-height: 430px;
    padding-top: 6.75rem;
    padding-bottom: 3.25rem;
    background-position: center center !important;
  }

  .page-banner h1 {
    font-size: clamp(2rem, 10vw, 2.7rem);
    overflow-wrap: anywhere;
  }

  .page-banner p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .breadcrumb-nav {
    margin-bottom: 0.75rem;
  }

  .section-pad {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: clamp(1.75rem, 8vw, 2.15rem);
  }

  .service-detail-img,
  .about-img {
    height: clamp(240px, 72vw, 340px);
  }

  .service-media-card img,
  .project-card img,
  .blog-card img {
    height: 210px;
  }

  .contact-form-card {
    padding: 1.35rem;
  }

  .cta-banner {
    padding: 2.25rem 1.25rem;
    border-radius: 18px;
  }

  .article-hero {
    padding: 6.75rem 0 3.5rem;
  }

  .article-hero h1 {
    font-size: clamp(2rem, 10vw, 2.75rem);
    overflow-wrap: anywhere;
  }

  .article-summary,
  .article-content {
    font-size: 1rem;
  }

  .article-container {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .site-footer {
    padding-top: 3.5rem;
  }
}

/* ============================================
   Inner pages & content components
   (service pages, FAQs, featured project, footer)
   ============================================ */

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2000;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

/* Cards whose heading link covers the whole card */
.service-card,
.blog-card {
  position: relative;
}

.service-card h3 a {
  color: inherit;
  text-decoration: none;
}

.service-card:hover h3 a {
  color: var(--cyan);
}

/* Informational cards are not links, so they should not lift like one */
.feature-card:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.feature-card p {
  margin-bottom: 0;
}

/* ---------- Hero additions ---------- */
.hero-section-compact .hero-title {
  font-size: clamp(2.2rem, 3.2vw, 3.4rem);
  max-width: 13.5em;
}

.hero-badges {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
}

.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.hero-badges i {
  color: var(--cyan);
}

/* ---------- Banner buttons ---------- */
.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn-outline-light.btn-pill {
  border-width: 2px;
}

/* ---------- Trust strip under banners ---------- */
.trust-strip {
  background: var(--navy-dark);
  color: #fff;
  padding: 1rem 0;
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 2.5rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-list i {
  color: var(--cyan);
  font-size: 1.1rem;
}

/* ---------- Long-form copy ---------- */
.content-prose p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}

.content-prose p:last-child {
  margin-bottom: 0;
}

.content-prose strong {
  color: var(--text);
  font-weight: 700;
}

.content-prose a,
.section-text a:not(.link-more),
.why-item p a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(45, 183, 214, 0.65);
  text-underline-offset: 3px;
}

.content-prose a:hover,
.section-text a:not(.link-more):hover,
.why-item p a:hover {
  color: var(--cyan);
}

/* ---------- Check list ---------- */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.95rem;
  margin-bottom: 0.7rem;
  color: var(--text);
  font-size: 0.98rem;
}

.check-list li:last-child {
  margin-bottom: 0;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--cyan-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2304466b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4.5 8.4l2.3 2.3 4.7-5'/%3E%3C/svg%3E") center / 72% no-repeat;
}

/* ---------- Info cards ---------- */
.info-card,
.audience-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.85rem;
  box-shadow: var(--shadow-sm);
}

.audience-card {
  background: var(--bg-soft);
  box-shadow: none;
}

.info-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.1rem;
}

/* ---------- Brand chips ---------- */
.brand-chips {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.brand-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: 50px;
  padding: 0.45rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.brand-chips li.is-partner {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.brand-chips li.is-partner i {
  color: var(--cyan);
}

/* ---------- Audience grid ---------- */
.audience-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.audience-grid li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  line-height: 1.35;
}

.audience-grid i {
  color: var(--cyan);
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ---------- Process steps ---------- */
.process-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.process-steps li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.process-steps h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.process-steps p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- FAQ accordion ---------- */
.faq-accordion {
  max-width: 860px;
  --bs-accordion-border-color: var(--border);
  --bs-accordion-btn-color: var(--navy);
  --bs-accordion-active-color: var(--navy);
  --bs-accordion-active-bg: var(--cyan-soft);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem rgba(45, 183, 214, 0.25);
}

.faq-accordion .accordion-item {
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  overflow: hidden;
  margin-bottom: 0.85rem;
  background: #fff;
}

.faq-accordion .accordion-button {
  font-family: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.4;
  padding: 1.1rem 1.25rem;
}

.faq-accordion .accordion-button:not(.collapsed) {
  box-shadow: none;
}

.faq-accordion .accordion-body {
  color: var(--text-muted);
  padding: 1rem 1.25rem 1.25rem;
}

/* ---------- Featured project ---------- */
.project-feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.project-feature-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.project-feature-body {
  padding: 2rem 2.25rem;
}

.project-feature-body h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0.85rem 0 0.6rem;
  line-height: 1.3;
}

.project-feature-body > p {
  color: var(--text-muted);
}

.project-feature-links {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.project-feature-links a {
  background: var(--cyan-soft);
  color: var(--navy);
  border-radius: 50px;
  padding: 0.25rem 0.8rem;
}

.project-feature-links a:hover {
  background: var(--cyan);
  color: #fff;
}

/* ---------- CTA buttons ---------- */
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  position: relative;
}

/* ---------- Flip card back title (was a duplicate heading) ---------- */
.flip-card-back .flip-card-back-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.65rem;
}

/* ---------- Footer & mobile menu additions ---------- */
.footer-heading-sub {
  margin-top: 1.75rem;
}

.site-footer address {
  font-style: normal;
  display: inline;
}

#mobileServices .dropdown-item {
  padding: 0.5rem 0;
  color: var(--navy);
  font-weight: 500;
  white-space: normal;
}

#mobileServices .dropdown-item.active,
#mobileServices .dropdown-item:hover,
#mobileServices .dropdown-item:focus {
  color: var(--cyan);
  background: transparent;
}

@media (max-width: 991.98px) {
  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-feature {
    grid-template-columns: 1fr;
  }

  .project-feature-media img {
    min-height: 0;
    height: 240px;
  }

  .project-feature-body {
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  /* Bootstrap's .g-5 gutter is wider than the container padding on phones and
     made the page 12px wider than the screen; keep the vertical gap only. */
  .row.g-5 {
    --bs-gutter-x: 1.5rem;
  }

  .process-steps,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .trust-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .info-card,
  .audience-card {
    padding: 1.5rem 1.25rem;
  }

  .banner-actions .btn,
  .cta-actions .btn {
    flex: 1 1 auto;
  }
}

/* ---------- Service photo cards (Services page) ---------- */
.service-media-card {
  position: relative;
}

.service-media-body h3 a {
  color: inherit;
  text-decoration: none;
}

.service-media-card:hover h3 a {
  color: var(--cyan);
}

/* ---------- Credentials (About page) ---------- */
.credential-card p {
  margin-bottom: 1rem;
}

/* ---------- Contact page ---------- */
.contact-form .form-select {
  border-radius: 12px;
  border-color: var(--border);
  padding: 0.8rem 2.5rem 0.8rem 1rem;
  font-family: inherit;
}

.contact-form .form-select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 0.2rem rgba(45, 183, 214, 0.2);
}

.contact-page-list address {
  font-style: normal;
}

/* ---------- Article body ---------- */
.article-content h3 {
  margin: 2rem 0 0.75rem;
  color: var(--navy);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 700;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.35rem;
  padding-left: 1.35rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(45, 183, 214, 0.65);
  text-underline-offset: 3px;
}

.article-content a:hover {
  color: var(--cyan);
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.article-content table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.97rem;
  line-height: 1.5;
}

.article-content th,
.article-content td {
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0.95rem;
  text-align: left;
  vertical-align: top;
}

.article-content thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

.article-content tbody tr:nth-child(even) {
  background: var(--bg-soft);
}

.article-content tbody tr:last-child td {
  border-bottom: 0;
}

.article-related {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.article-related h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.9rem;
}

.article-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.article-related a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.45rem 1rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
}

.article-related a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.article-byline {
  margin: 2rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.article-hero .breadcrumb-nav a:hover {
  color: #fff;
}

.article-hero .breadcrumb-nav span[aria-current] {
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- 404 page ---------- */
.error-page {
  min-height: 72svh;
}

.page-banner .error-code {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

@media (max-width: 575.98px) {
  .article-content table {
    min-width: 0;
    font-size: 0.86rem;
  }

  .article-content th,
  .article-content td {
    padding: 0.6rem 0.55rem;
  }
}

/* ---------- Footer logo (light version of the logo for the dark footer) ---------- */
.footer-logo {
  display: inline-block;
  margin-bottom: 1.15rem;
}

.footer-logo img {
  height: 50px;
  width: auto;
}

/* ---------- Photos on top of the service page cards ---------- */
.info-card.has-media,
.audience-card.has-media {
  padding: 0;
  overflow: hidden;
}

.card-media img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.card-media-body {
  padding: 1.75rem 1.85rem 2rem;
}

.info-card.has-media .service-icon {
  position: relative;
  margin-top: calc(-1.75rem - 29px);
  box-shadow: 0 0 0 5px #fff;
}

@media (max-width: 575.98px) {
  .card-media img {
    height: 200px;
  }

  .card-media-body {
    padding: 1.5rem 1.25rem;
  }

  .info-card.has-media .service-icon {
    margin-top: calc(-1.5rem - 29px);
  }
}

/* ---------- Forms: hidden spam-trap field and the newsletter result line ---------- */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.newsletter-feedback {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #8fe3f5;
}

.newsletter-feedback:empty {
  display: none;
}

.newsletter-feedback.is-error {
  color: #ffb4a8;
}
