/**
 * Primone V Associates - People & Collaboration
 * Attractive, mobile-first design with gradient palette
 */
:root {
  --gradient-start: #22c55e;
  --gradient-mid: #3b82f6;
  --gradient-end: #a855f7;
  --accent-pink: #ec4899;
  --accent-yellow: #eab308;
  --dark: #1e293b;
  --dark-soft: #334155;
  --light: #f8fafc;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(34, 197, 94, 0.08);
  --shadow-hover: 0 12px 40px rgba(59, 130, 246, 0.15);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Light section base + brand wash (matches home “Why choose us” + testimonials) */
  --surface-light: linear-gradient(165deg, var(--light) 0%, #ffffff 45%, #eef2ff 100%);
  --wash-brand: linear-gradient(
    135deg,
    color-mix(in srgb, var(--gradient-start) 10%, transparent) 0%,
    color-mix(in srgb, var(--gradient-mid) 9%, transparent) 45%,
    color-mix(in srgb, var(--gradient-end) 9%, transparent) 100%
  );
}

@supports not (background: color-mix(in srgb, red, blue)) {
  :root {
    --wash-brand: linear-gradient(
      135deg,
      rgba(34, 197, 94, 0.1) 0%,
      rgba(59, 130, 246, 0.08) 45%,
      rgba(168, 85, 247, 0.09) 100%
    );
  }
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 76px;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  min-width: 320px;
}

/* Sticky footer: pairs with body.d-flex.flex-column.min-vh-100 + main.flex-grow-1 */
main.flex-grow-1 {
  min-width: 0;
  min-height: 0;
}

/* Job apply: single column — avoid row stretch; room above floating WhatsApp */
.job-apply-section {
  padding-bottom: 4.5rem !important;
}

@media (min-width: 576px) {
  .job-apply-section {
    padding-bottom: 5.5rem !important;
  }
}

/* Gradient text & backgrounds */
.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-bg {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
}

.gradient-bg-soft {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.06) 0%, rgba(59, 130, 246, 0.06) 50%, rgba(168, 85, 247, 0.06) 100%);
}

/* Navbar */
.navbar-custom {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 20px rgba(34, 197, 94, 0.06);
  padding: 0.75rem 0;
  transition: var(--transition);
}

/* Logo & brand stay on the left; menu aligns right */
.navbar-custom > .container {
  justify-content: flex-start;
}

.navbar-custom .navbar-brand.navbar-brand-custom {
  margin-right: auto !important;
  flex-shrink: 0;
}

.navbar-custom .navbar-brand .site-logo {
  order: 0;
}

@media (max-width: 991.98px) {
  .navbar-custom .navbar-toggler {
    margin-left: auto;
  }
}

.site-logo {
  height: 56px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  flex: 0 0 auto;
}

/* Wordmark: flex stretch + object-fit fills the outer frame without inner padding */
.site-logo.site-logo-wordmark {
  display: block;
  width: auto;
  max-width: min(100%, 260px);
  min-width: 0;
  object-fit: contain;
  object-position: center center;
}

/* Dark frame: no padding; stretch child so logo uses full inner height/width of the box */
.navbar-logo-surface {
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  height: 56px;
  padding: 0;
  overflow: hidden;
  border-radius: 0.5rem;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
  line-height: 0;
  flex-shrink: 0;
}

.navbar-custom .navbar-brand.navbar-brand-wordmark {
  max-width: calc(100% - 3.5rem);
}

.site-logo-login-wordmark {
  display: inline-block;
  max-width: 100%;
  height: auto;
  max-height: 100px;
  width: auto;
  object-fit: contain;
}

.admin-login-logo-surface {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.2);
  line-height: 0;
}

.navbar-custom.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.navbar-brand-custom {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.navbar-brand-custom .tagline {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  opacity: 0.8;
}

.nav-link-custom {
  font-weight: 600;
  color: var(--dark-soft) !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--gradient-mid) !important;
  background: rgba(59, 130, 246, 0.08);
}

.btn-nav-cta {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
  color: var(--white) !important;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  border: none;
  transition: var(--transition);
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.35);
  color: var(--white) !important;
}

/* Mobile nav: full-width dropdown with spacing */
@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 0.75rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(0,0,0,0.06);
  }
  .navbar-nav .nav-item { margin-bottom: 0.25rem; }
  .navbar-nav .nav-link-custom { padding: 0.75rem 1rem !important; border-radius: var(--radius-sm); }
  .navbar-nav .btn-nav-cta { width: 100%; text-align: center; margin-top: 0.5rem; }
}

/* Hero */
.hero-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, rgba(34, 197, 94, 0.04) 0%, rgba(59, 130, 246, 0.06) 40%, rgba(168, 85, 247, 0.04) 100%);
  position: relative;
  overflow: hidden;
}

.hero-slider {
  position: relative;
}

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

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  height: 100%;
}

.hero-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Foreground copy layer (above overlay) — synced with hero-carousel-bg in main.js */
.hero-copy-carousel {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-copy-carousel .carousel-inner {
  height: 100%;
}

/* Do not set display on .carousel-item — Bootstrap uses display:none on inactive slides;
   display:flex here was overriding that and stacked every slide’s copy. */
.hero-copy-carousel .carousel-item {
  min-height: 85vh;
  padding-top: 5.5rem;
  padding-bottom: 5rem;
}

.hero-copy-carousel .hero-slide-content {
  width: 100%;
  min-height: calc(85vh - 5.5rem - 5rem);
  display: flex;
  align-items: center;
  pointer-events: auto;
}

.hero-copy-carousel .carousel-indicators,
.hero-copy-carousel .carousel-control-prev,
.hero-copy-carousel .carousel-control-next {
  pointer-events: auto;
}

.home-hero-indicators {
  bottom: clamp(5rem, 12vw, 7rem);
  margin-bottom: 0;
  z-index: 4;
}

.home-hero-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.45);
  border: none;
  opacity: 1;
}

.home-hero-indicators .active {
  background-color: #ffffff;
  transform: scale(1.15);
}

.home-hero-control {
  width: 3rem;
  height: 3rem;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  opacity: 1;
  z-index: 4;
  transition: background var(--transition), color var(--transition);
}

.home-hero-control:hover {
  background: rgba(255, 255, 255, 0.22);
}

.home-hero-control i {
  color: #ffffff;
  font-size: 1.35rem;
}

.home-hero-control.carousel-control-prev {
  left: 0.75rem;
}

.home-hero-control.carousel-control-next {
  right: 0.75rem;
}

@media (min-width: 992px) {
  .home-hero-control.carousel-control-prev {
    left: 1.25rem;
  }
  .home-hero-control.carousel-control-next {
    right: 1.25rem;
  }
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-section .container { position: relative; z-index: 2; }
.hero-section-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.85) 0%, rgba(30, 41, 59, 0.4) 60%, transparent 100%);
  pointer-events: none;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--dark-soft);
  max-width: 540px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  color: var(--dark);
  transition: var(--transition);
}

.hero-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
}

.hero-cta-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Subtle entrance (respect reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .hero-title, .hero-subtitle, .hero-badges, .hero-section .hero-cta-wrap {
    animation: fadeUp 0.7s ease-out backwards;
  }
  .hero-subtitle { animation-delay: 0.1s; }
  .hero-badges { animation-delay: 0.2s; }
  .hero-section .hero-cta-wrap { animation-delay: 0.3s; }
  .card-custom { transition: transform var(--transition), box-shadow var(--transition); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero with background image – ensure content is visible */
.hero-section-with-bg .hero-title {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-section-with-bg .hero-subtitle {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-section-with-bg .hero-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.hero-section-with-bg .hero-badge span {
  background: rgba(255, 255, 255, 0.9);
}

.hero-section-with-bg .btn-outline-custom {
  border-color: rgba(255, 255, 255, 0.9);
  color: #ffffff;
}

.hero-section-with-bg .btn-outline-custom:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  color: #ffffff;
}

/* Page banner (inner pages): gradient by default; optional photo overrides via inline background-image */
.page-banner {
  min-height: 320px;
  background-color: var(--dark);
  background-image: linear-gradient(135deg, var(--dark-soft) 0%, var(--dark) 50%, #0f172a 100%);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  padding: 4rem 0;
}
.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: none;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}
.page-banner-title.gradient-text { color: transparent; }
.page-banner-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 0;
  max-width: 600px;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.5);
}

/* Content / section images */
.content-image-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.content-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.img-rounded { border-radius: 16px; overflow: hidden; }

/* Buttons */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
  color: var(--white);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.35);
  color: var(--white);
}

.btn-outline-custom {
  background: transparent;
  color: var(--gradient-mid);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--gradient-mid);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.btn-outline-custom:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--gradient-mid);
}

/* Section titles */
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--dark-soft);
  max-width: 600px;
  margin: 0 auto;
}

/* Cards */
/* height: use Bootstrap .h-100 on grid cards where equal columns are needed — not here,
   or stacked cards (e.g. job apply) incorrectly stretch and can overlap the footer */
.card-custom {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
  height: auto;
  min-height: 0;
  background: var(--white);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-icon.green { background: rgba(34, 197, 94, 0.12); color: var(--gradient-start); }
.card-icon.blue { background: rgba(59, 130, 246, 0.12); color: var(--gradient-mid); }
.card-icon.purple { background: rgba(168, 85, 247, 0.12); color: var(--gradient-end); }
.card-icon.pink { background: rgba(236, 72, 153, 0.12); color: var(--accent-pink); }

/* Testimonials — default section shell (home uses .testimonial-section-red) */
.testimonial-section:not(.testimonial-section-red) {
  background: var(--light);
}

/* Client logos — infinite marquee (logos from Admin → Client logos) */
.home-section-clients {
  background: linear-gradient(180deg, var(--white) 0%, var(--light) 100%);
  overflow: hidden;
}

.clients-marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.clients-marquee {
  overflow: hidden;
}

.clients-marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  width: max-content;
  animation: clients-marquee-scroll 38s linear infinite;
}

.clients-marquee-item {
  flex: 0 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
}

.clients-marquee-item img {
  max-height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(0.25);
  opacity: 0.9;
}

@keyframes clients-marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .clients-marquee-track {
    animation: none;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    gap: 1.5rem 2.5rem;
  }
}

/* Testimonials — home layout (site gradient palette) */
.testimonial-section-red {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.08) 0%,
    rgba(59, 130, 246, 0.07) 45%,
    rgba(168, 85, 247, 0.07) 100%
  ) !important;
  position: relative;
}

.testimonial-section-red .row > [class*="col-"] {
  min-width: 0;
}

.testimonial-section-red__intro {
  position: relative;
  z-index: 1;
  padding-right: clamp(0rem, 2vw, 1.5rem);
}

.testimonial-section-red__title {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.testimonial-section-red__title-accent {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.testimonial-section-red__lead {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--dark-soft);
  margin-bottom: 1rem;
  max-width: 28rem;
}

/* Carousel + card */
.testimonial-carousel-red {
  position: relative;
  padding: 0 0 2.5rem;
  max-width: 100%;
}

.testimonial-carousel-red__inner {
  overflow: hidden;
  /* Breathing room so card shadow isn’t clipped by the overflow boundary */
  padding: 0.5rem 0.75rem;
}

.testimonial-carousel-red .carousel-item {
  padding: 0 0.25rem;
}

.testimonial-card-red {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1.25rem 1.75rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.5rem 1.5rem 1.25rem;
  border: 1px solid rgba(59, 130, 246, 0.1);
  box-shadow: var(--shadow-hover);
  margin: 0 auto;
  max-width: 560px;
  min-height: 200px;
}

.testimonial-card-red__media {
  position: relative;
  flex-shrink: 0;
  align-self: flex-start;
  padding-top: 10px;
  padding-left: 10px;
}

.testimonial-card-red__corner {
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 56px;
  border-top: 5px solid var(--gradient-mid);
  border-left: 5px solid var(--gradient-start);
  border-radius: 2px 0 0 0;
  pointer-events: none;
  z-index: 0;
}

.testimonial-card-red__photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 132px;
  height: 168px;
  object-fit: cover;
  background: #e2e8f0;
  border-radius: 4px;
}

.testimonial-card-red__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
  color: #ffffff;
  font-weight: 800;
  font-size: 2rem;
}

.testimonial-card-red__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0.25rem;
}

.testimonial-card-red__quote {
  margin: 0 0 1rem 0;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--dark-soft);
  font-style: normal;
  font-weight: 400;
  border: none;
}

.testimonial-card-red__quote::before {
  content: '"';
}

.testimonial-card-red__quote::after {
  content: '"';
}

.testimonial-card-red__name {
  margin: 0 0 0.2rem 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
}

.testimonial-card-red__role {
  margin: 0 0 0.5rem 0;
  font-size: 0.875rem;
  color: var(--dark-soft);
  font-weight: 400;
}

.testimonial-card-red__stars {
  display: flex;
  gap: 3px;
  color: var(--gradient-mid);
  font-size: 1rem;
}

.testimonial-carousel-red__dots {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  margin: 1.25rem 0 0;
  justify-content: center;
  gap: 0.45rem;
  pointer-events: auto;
}

.testimonial-carousel-red__dots button {
  box-sizing: content-box;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  padding: 6px;
  border-radius: 50%;
  margin: 0;
  border: none;
  background-color: rgba(59, 130, 246, 0.28);
  background-clip: content-box;
  opacity: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.testimonial-carousel-red__dots button.active {
  width: 12px;
  height: 12px;
  padding: 5px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
  background-clip: content-box;
  transform: scale(1.12);
}

/* Bootstrap sets carousel controls top:0; bottom:0 — that tall overlay can sit on top of
   statically placed dots and steal clicks. Pin controls to the card band only. */
.testimonial-carousel-red .carousel-control-prev.testimonial-carousel-red__nav,
.testimonial-carousel-red .carousel-control-next.testimonial-carousel-red__nav {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  z-index: 2;
  margin: 0;
  padding: 0;
}

.testimonial-carousel-red__nav {
  background: var(--white);
  border-radius: 50%;
  opacity: 0.92;
  box-shadow: var(--shadow);
  color: var(--gradient-mid);
}

.testimonial-carousel-red__nav:hover {
  opacity: 1;
  background: var(--white);
  color: var(--gradient-start);
}

.testimonial-carousel-red .carousel-control-prev.testimonial-carousel-red__nav {
  left: 0.25rem;
}

.testimonial-carousel-red .carousel-control-next.testimonial-carousel-red__nav {
  right: 0.25rem;
}

@media (max-width: 575.98px) {
  .testimonial-card-red {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.35rem 1.25rem;
  }

  .testimonial-card-red__media {
    padding-left: 12px;
    padding-top: 12px;
  }

  .testimonial-card-red__content {
    align-items: center;
  }

  .testimonial-card-red__quote {
    text-align: center;
  }

  .testimonial-carousel-red__nav {
    display: none;
  }
}

/* ========== Homepage — unique section designs ========== */

/* Hero: mesh grid, eyebrow, wave */
.home-hero {
  padding-bottom: 4.5rem !important;
}

.home-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.9) 35%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.9) 35%, black 100%);
}

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

.home-hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.home-hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
}

.home-hero-btn-primary {
  box-shadow: 0 8px 28px rgba(34, 197, 94, 0.35);
}

.home-hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  line-height: 0;
  color: #ffffff;
  pointer-events: none;
}

.home-hero-wave-svg {
  display: block;
  width: 100%;
  height: clamp(48px, 8vw, 72px);
}

/* Shared section labels */
.home-section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gradient-mid);
  background: rgba(59, 130, 246, 0.08);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.home-section-eyebrow--on-dark {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Why: soft grid + bento cards */
.home-section-why {
  position: relative;
  background: var(--surface-light);
  overflow: hidden;
}

.home-section-why::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(99, 102, 241, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.home-section-why::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  background: radial-gradient(circle, rgba(34, 197, 94, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

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

.home-why-image {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(30, 41, 59, 0.12);
  transform: rotate(-1deg);
  transition: transform var(--transition);
}

.home-why-image:hover {
  transform: rotate(0deg) scale(1.01);
}

.home-feature-card {
  border-radius: var(--radius-lg) !important;
  border: 1px solid rgba(226, 232, 240, 0.9);
  position: relative;
  overflow: visible !important;
}

.home-feature-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent-a, var(--gradient-start)), var(--accent-b, var(--gradient-mid)));
}

.home-feature-card--a::before {
  --accent-a: var(--gradient-start);
  --accent-b: var(--gradient-mid);
}

.home-feature-card--b::before {
  --accent-a: var(--gradient-mid);
  --accent-b: var(--gradient-end);
}

.home-feature-card--c::before {
  --accent-a: var(--gradient-end);
  --accent-b: var(--accent-pink);
}

.home-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.12);
}

/* Services: light brand row (home) — matches CTA / Why choose us / testimonials */
.home-section-services {
  position: relative;
  background: var(--wash-brand), var(--surface-light);
  color: var(--dark);
  overflow: hidden;
  border-top: 1px solid color-mix(in srgb, var(--gradient-mid) 18%, transparent);
}

@supports not (color: color-mix(in srgb, red, blue)) {
  .home-section-services {
    border-top-color: rgba(59, 130, 246, 0.14);
  }
}

.home-section-services::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(99, 102, 241, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

.home-section-services-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 75% 55% at 15% 0%, color-mix(in srgb, var(--gradient-mid) 16%, transparent) 0%, transparent 58%),
    radial-gradient(ellipse 55% 45% at 100% 85%, color-mix(in srgb, var(--gradient-end) 14%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, color-mix(in srgb, var(--gradient-start) 12%, transparent) 0%, transparent 50%);
}

@supports not (color: color-mix(in srgb, red, blue)) {
  .home-section-services-glow {
    background:
      radial-gradient(ellipse 75% 55% at 15% 0%, rgba(59, 130, 246, 0.14) 0%, transparent 58%),
      radial-gradient(ellipse 55% 45% at 100% 85%, rgba(168, 85, 247, 0.1) 0%, transparent 55%),
      radial-gradient(ellipse 50% 40% at 0% 100%, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
  }
}

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

.home-services-head {
  padding-bottom: 0.25rem;
}

.home-services-head-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
  line-height: 1.15;
}

.home-services-head-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dark-soft);
  transition: color 0.2s ease, transform 0.2s ease;
}

.home-services-head-link:hover {
  color: var(--gradient-mid);
}

.home-services-head-link:hover .bi {
  transform: translateX(3px);
}

.home-services-head-link .bi {
  transition: transform 0.2s ease;
  font-size: 1.05em;
}

.home-services-head-rule {
  height: 1px;
  width: 100%;
  margin: 1.25rem 0 2rem;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--gradient-mid) 45%, transparent) 20%,
    color-mix(in srgb, var(--gradient-end) 35%, transparent) 80%,
    transparent
  );
}

@supports not (color: color-mix(in srgb, red, blue)) {
  .home-services-head-rule {
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.35) 50%, transparent);
  }
}

@media (min-width: 992px) {
  .home-services-head-rule {
    margin-bottom: 2.5rem;
  }
}

.home-services-grid {
  --home-service-tile-radius: 18px;
}

.home-service-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem 1.75rem 2rem;
  border-radius: var(--home-service-tile-radius);
  background: var(--white);
  border: 1px solid color-mix(in srgb, var(--gradient-mid) 22%, transparent);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  overflow: hidden;
}

@supports not (color: color-mix(in srgb, red, blue)) {
  .home-service-tile {
    border-color: rgba(59, 130, 246, 0.18);
  }
}

/* Photo layer: hidden until hover */
.home-service-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  pointer-events: none;
}

.home-service-tile:hover::before,
.home-service-tile:focus-within::before {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .home-service-tile::before {
    transition: opacity 0.15s ease;
  }
}

.home-service-tile > * {
  position: relative;
  z-index: 1;
}

.home-service-tile:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--gradient-mid) 42%, transparent);
  box-shadow: var(--shadow-hover);
}

@supports not (color: color-mix(in srgb, red, blue)) {
  .home-service-tile:hover {
    border-color: rgba(59, 130, 246, 0.4);
  }
}

.home-service-tile__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--gradient-mid) 58%, var(--dark-soft));
  transition: color 0.3s ease;
}

@supports not (color: color-mix(in srgb, red, blue)) {
  .home-service-tile__label {
    color: #64748b;
  }
}

.home-service-tile:hover .home-service-tile__label,
.home-service-tile:focus-within .home-service-tile__label {
  color: rgba(255, 255, 255, 0.88);
}

.home-service-tile__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin: 0;
  max-width: 14ch;
  transition: color 0.3s ease;
}

.home-service-tile:hover .home-service-tile__title,
.home-service-tile:focus-within .home-service-tile__title {
  color: var(--white);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.home-service-tile__text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--dark-soft);
  transition: color 0.3s ease;
}

.home-service-tile:hover .home-service-tile__text,
.home-service-tile:focus-within .home-service-tile__text {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

/* Brand-tinted scrim (--dark) + image per tile (shown on hover) */
.home-service-tile--bg-1::before {
  background-image:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--dark) 88%, var(--gradient-mid) 12%) 0%,
      color-mix(in srgb, var(--dark) 82%, var(--gradient-end) 10%) 45%,
      color-mix(in srgb, var(--dark) 90%, var(--gradient-mid) 8%) 100%
    ),
    url("https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=900&q=80");
  background-position: 50% 35%;
}

.home-service-tile--bg-2::before {
  background-image:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--dark) 90%, var(--gradient-start) 8%) 0%,
      color-mix(in srgb, var(--dark) 78%, var(--gradient-mid) 14%) 50%,
      color-mix(in srgb, var(--dark) 92%, var(--gradient-end) 8%) 100%
    ),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?w=900&q=80");
  background-position: 50% 45%;
}

.home-service-tile--bg-3::before {
  background-image:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--dark) 88%, var(--gradient-end) 12%) 0%,
      color-mix(in srgb, var(--dark) 84%, var(--gradient-mid) 12%) 50%,
      color-mix(in srgb, var(--dark) 91%, var(--gradient-start) 7%) 100%
    ),
    url("https://images.unsplash.com/photo-1560472354-b33ff0c44a43?w=900&q=80");
  background-position: 55% 40%;
}

.home-service-tile--bg-4::before {
  background-image:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--dark) 90%, var(--gradient-mid) 10%) 0%,
      color-mix(in srgb, var(--dark) 82%, var(--gradient-end) 12%) 48%,
      color-mix(in srgb, var(--dark) 92%, var(--gradient-mid) 6%) 100%
    ),
    url("https://images.unsplash.com/photo-1521737711967-3e63d6a6c4e8?w=900&q=80");
  background-position: 50% 30%;
}

@supports not (color: color-mix(in srgb, red, blue)) {
  .home-service-tile--bg-1::before {
    background-image:
      linear-gradient(165deg, rgba(30, 41, 59, 0.9) 0%, rgba(30, 41, 59, 0.84) 45%, rgba(30, 41, 59, 0.92) 100%),
      url("https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=900&q=80");
  }

  .home-service-tile--bg-2::before {
    background-image:
      linear-gradient(165deg, rgba(30, 41, 59, 0.91) 0%, rgba(30, 41, 59, 0.8) 50%, rgba(30, 41, 59, 0.93) 100%),
      url("https://images.unsplash.com/photo-1552664730-d307ca884978?w=900&q=80");
  }

  .home-service-tile--bg-3::before {
    background-image:
      linear-gradient(165deg, rgba(30, 41, 59, 0.89) 0%, rgba(30, 41, 59, 0.86) 50%, rgba(30, 41, 59, 0.92) 100%),
      url("https://images.unsplash.com/photo-1560472354-b33ff0c44a43?w=900&q=80");
  }

  .home-service-tile--bg-4::before {
    background-image:
      linear-gradient(165deg, rgba(30, 41, 59, 0.91) 0%, rgba(30, 41, 59, 0.85) 48%, rgba(30, 41, 59, 0.93) 100%),
      url("https://images.unsplash.com/photo-1521737711967-3e63d6a6c4e8?w=900&q=80");
  }
}

/* Vision: split editorial + gradient CTA */
.home-section-vision {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
}

.home-vision-copy {
  padding-left: 0.5rem;
  border-left: 4px solid transparent;
  border-image: linear-gradient(180deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end)) 1;
}

@media (max-width: 991.98px) {
  .home-vision-copy {
    border-left: none;
    padding-left: 0;
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end)) 1;
    padding-top: 1rem;
  }
}

.home-vision-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gradient-mid);
  margin-bottom: 0.35rem;
}

.home-vision-block {
  padding: 1rem 0 1rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: radial-gradient(ellipse at left center, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
  border-left: 3px solid rgba(59, 130, 246, 0.35);
}

.home-vision-frame {
  position: relative;
}

.home-vision-frame::before {
  content: '';
  position: absolute;
  inset: -0.5rem;
  border-radius: calc(var(--radius-lg) + 4px);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.35), rgba(59, 130, 246, 0.35), rgba(168, 85, 247, 0.35));
  z-index: 0;
  opacity: 0.9;
}

.home-vision-img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: rotate(1.5deg);
  box-shadow: 0 20px 50px rgba(30, 41, 59, 0.15);
}

.home-vision-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #312e81 100%);
  color: #fff;
  box-shadow: 0 16px 40px rgba(30, 41, 59, 0.2);
}

.home-vision-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, transparent 50%);
  pointer-events: none;
}

.home-vision-cta-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  flex-shrink: 0;
}

.home-vision-cta-text {
  color: rgba(255, 255, 255, 0.72);
}

@media (prefers-reduced-motion: reduce) {
  .home-why-image,
  .home-vision-img {
    transform: none;
  }
  .home-why-image:hover {
    transform: none;
  }
}

/* Home — intro story (below hero) */
.home-section-intro {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 55%, #fafbff 100%);
  border-top: 1px solid rgba(226, 232, 240, 0.85);
}

.home-section-intro-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(99, 102, 241, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.9) 40%, rgba(0, 0, 0, 0.35) 100%);
}

.home-section-intro-bg::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -8%;
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  background: radial-gradient(circle, rgba(34, 197, 94, 0.14) 0%, transparent 62%);
}

.home-intro-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 1.25rem;
  max-width: 20ch;
}

.home-intro-lead {
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--dark-soft);
  margin-bottom: 1.75rem;
  max-width: 52rem;
}

.home-intro-quote {
  position: relative;
  padding: 1.35rem 1.35rem 1.35rem 1.6rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 8px 32px rgba(30, 41, 59, 0.06), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.home-intro-quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  bottom: 0.85rem;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
}

.home-intro-quote__icon {
  position: absolute;
  top: 0.65rem;
  right: 1rem;
  font-size: 2.75rem;
  line-height: 1;
  color: rgba(59, 130, 246, 0.12);
  pointer-events: none;
}

.home-intro-quote__icon .bi {
  display: block;
}

.home-intro-secondary {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--dark);
  font-weight: 600;
  padding-right: 2rem;
}

/* Visual metrics panel */
.home-intro-panel {
  position: relative;
  height: 100%;
  min-height: 300px;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 48%, #eef2ff 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 20px 50px rgba(30, 41, 59, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.home-intro-panel__glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
  top: -60px;
  right: -50px;
  pointer-events: none;
}

.home-intro-panel__ring {
  position: absolute;
  inset: 12px;
  border-radius: calc(var(--radius-lg) - 8px);
  border: 1px dashed rgba(148, 163, 184, 0.35);
  pointer-events: none;
}

.home-intro-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  position: relative;
  z-index: 1;
}

.home-intro-metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-intro-metric:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.1);
}

.home-intro-metric__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.home-intro-metric__icon--g {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.home-intro-metric__icon--b {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
}

.home-intro-metric__icon--p {
  background: rgba(168, 85, 247, 0.15);
  color: #9333ea;
}

.home-intro-metric__icon--y {
  background: rgba(234, 179, 8, 0.18);
  color: #ca8a04;
}

.home-intro-metric__val {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dark);
  line-height: 1.15;
}

.home-intro-metric__lab {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dark-soft);
}

.home-intro-panel__foot {
  position: relative;
  z-index: 1;
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(100, 116, 139, 0.9);
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

@media (max-width: 991.98px) {
  .home-intro-panel {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-intro-metric:hover {
    transform: none;
  }
}

/* About page */
.about-lead {
  color: var(--dark-soft);
}

.about-team-image {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(30, 41, 59, 0.12);
}

.about-profile-section .about-profile-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.about-profile-section .about-profile-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.about-profile-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

/* Process steps */
.process-step {
  position: relative;
  padding-left: 2.5rem;
}

.process-step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
}

.process-step + .process-step::after {
  content: '';
  position: absolute;
  left: 5px;
  top: -1rem;
  bottom: 100%;
  width: 2px;
  background: linear-gradient(to bottom, var(--gradient-mid), transparent);
}

/* Contact form */
.form-control-custom {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control-custom:focus {
  border-color: var(--gradient-mid);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
  outline: none;
}

/* CTA strip (above footer, all pages) — same palette as “Why choose us” + brand wash */
.site-cta-banner {
  position: relative;
  color: var(--dark);
  border-bottom: 1px solid color-mix(in srgb, var(--gradient-mid) 18%, transparent);
  overflow: hidden;
  background: var(--wash-brand), var(--surface-light);
}

@supports not (color: color-mix(in srgb, red, blue)) {
  .site-cta-banner {
    border-bottom-color: rgba(59, 130, 246, 0.14);
  }
}

.site-cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(99, 102, 241, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

.site-cta-banner::after {
  content: "";
  position: absolute;
  top: -38%;
  right: -14%;
  width: min(52vw, 480px);
  height: min(52vw, 480px);
  background: radial-gradient(circle, color-mix(in srgb, var(--gradient-start) 22%, transparent) 0%, transparent 65%);
  pointer-events: none;
}

@supports not (color: color-mix(in srgb, red, blue)) {
  .site-cta-banner::after {
    background: radial-gradient(circle, rgba(34, 197, 94, 0.14) 0%, transparent 65%);
  }
}

.site-cta-inner {
  z-index: 1;
}

.site-cta-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--dark);
}

.site-cta-sub {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--dark-soft);
  line-height: 1.5;
}

.site-cta-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--gradient-mid) 28%, transparent),
    0 0 0 10px color-mix(in srgb, var(--gradient-end) 12%, transparent);
  right: min(22%, 180px);
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

@supports not (color: color-mix(in srgb, red, blue)) {
  .site-cta-dot {
    box-shadow:
      0 0 0 3px rgba(59, 130, 246, 0.22),
      0 0 0 10px rgba(168, 85, 247, 0.08);
  }
}

@media (max-width: 991.98px) {
  .site-cta-dot {
    display: none;
  }
}

.site-cta-btn {
  --bs-btn-padding-y: 0.8rem;
  --bs-btn-padding-x: 1.85rem;
  font-weight: 600;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
  color: var(--white) !important;
  border: none;
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.site-cta-btn:hover {
  color: var(--white) !important;
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover), 0 0 0 1px color-mix(in srgb, var(--gradient-start) 35%, transparent);
}

@supports not (color: color-mix(in srgb, red, blue)) {
  .site-cta-btn:hover {
    box-shadow: var(--shadow-hover);
  }
}

.site-cta-btn:focus-visible {
  outline: 2px solid var(--gradient-mid);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .site-cta-btn:hover {
    transform: none;
  }
}

/* Footer */
.footer-custom {
  background: linear-gradient(180deg, var(--dark) 0%, #0f172a 100%);
  color: rgba(255,255,255,0.88);
  padding: 2rem 0 1.25rem;
  position: relative;
  overflow: hidden;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.45;
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.85rem;
  margin-top: 0.05rem;
}

.footer-contact-address {
  font-weight: 400;
}

.footer-social {
  display: grid;
  gap: 0.6rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.25rem;
  border-radius: 10px;
}

.footer-social-link:hover {
  background: rgba(255,255,255,0.06);
}

.footer-social-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

.footer-custom::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(59,130,246,0.14), transparent 55%);
  opacity: 0.85;
  pointer-events: none;
}

.footer-custom a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-custom a:hover {
  color: var(--white);
}

.footer-logo-link {
  line-height: 0;
  display: block;
  width: 100%;
  max-width: 100%;
}

.footer-logo {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 164px;
  object-fit: contain;
  object-position: left center;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.footer-seo-text {
  max-width: 320px;
  line-height: 1.55;
}

.footer-keywords {
  font-size: 0.75rem;
  opacity: 0.85;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 1.25rem;
  padding-top: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0));
}

/* Contact page — WhatsApp CTA */
.btn-whatsapp-chat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  border: none;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp-chat:hover {
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp-chat img {
  flex-shrink: 0;
}

/* Floating WhatsApp chat (right side) — icon only */
.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0));
  z-index: 1055;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  min-height: 56px;
  padding: 0;
  background: #25d366;
  color: #ffffff !important;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  line-height: 1;
  animation: whatsapp-pulse 2.5s ease-in-out infinite;
}

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 4px 28px rgba(37, 211, 102, 0.65); }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
}

.whatsapp-float:hover {
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.6);
  outline-offset: 3px;
}

.whatsapp-float-icon {
  flex-shrink: 0;
  display: block;
}

/* Page headers */
.page-hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(160deg, rgba(34, 197, 94, 0.06), rgba(59, 130, 246, 0.08));
}

/* Admin panel */
.admin-sidebar {
  background: var(--dark);
  min-height: 100vh;
  padding: 1.5rem 0;
}

.admin-sidebar .nav-link {
  color: rgba(255,255,255,0.8);
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  margin: 0 0.5rem;
}

.admin-sidebar .nav-link:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

.admin-sidebar .nav-link.active {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
  color: var(--white);
}

/* ========== RESPONSIVE: Mobile-first polish ========== */

/* Extra small (mobile portrait, 320px–575px) */
@media (max-width: 575.98px) {
  body { padding-top: 64px; padding-bottom: env(safe-area-inset-bottom, 0); }
  .navbar-custom { padding: 0.5rem 0; }
  .navbar-brand-custom { font-size: 1.2rem; }
  .navbar-brand-custom .tagline { font-size: 0.6rem; letter-spacing: 0.1em; }
  .site-logo:not(.site-logo-wordmark) { height: 44px; max-width: 110px; }
  .navbar-logo-surface { height: 48px; }
  .site-logo.site-logo-wordmark { max-width: min(100%, 200px); }
  .nav-link-custom { padding: 0.75rem 1rem !important; min-height: 48px; display: inline-flex; align-items: center; }
  .btn-nav-cta { padding: 0.75rem 1.25rem; min-height: 48px; }
  .hero-section { min-height: auto; padding: 2.5rem 0 3rem; }
  .hero-title { font-size: clamp(1.6rem, 8vw, 2.1rem); line-height: 1.25; }
  .hero-subtitle { font-size: 1rem; line-height: 1.55; }
  .hero-badges { flex-direction: column; gap: 0.6rem; margin-top: 1.25rem; }
  .hero-badge { font-size: 0.875rem; padding: 0.6rem 1rem; width: 100%; justify-content: flex-start; }
  .hero-section-with-bg .hero-section-overlay { background: linear-gradient(180deg, rgba(30,41,59,0.92) 0%, rgba(30,41,59,0.6) 65%, transparent 100%); }
  .hero-section .btn-primary-custom,
  .hero-section .btn-outline-custom { padding: 0.75rem 1.5rem; min-height: 48px; width: 100%; justify-content: center; }
  .hero-section .btn-outline-custom { margin-top: 0.5rem; margin-left: 0 !important; }
  .hero-section .hero-cta-wrap { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .hero-section .hero-cta-wrap .btn { margin: 0 !important; }
  .section-title { font-size: clamp(1.5rem, 6vw, 1.85rem); }
  .section-subtitle { font-size: 0.95rem; }
  .card-custom { margin-bottom: 0.5rem; padding: 1.25rem !important; }
  .card-custom:hover { transform: none; }
  .card-icon { width: 48px; height: 48px; font-size: 1.25rem; }
  .page-banner { min-height: 220px; padding: 2.5rem 0; }
  .page-banner-title { font-size: clamp(1.4rem, 6vw, 1.75rem); }
  .page-banner-subtitle { font-size: 0.95rem; }
  .footer-custom { padding: 1.75rem 0 1rem; }
  .footer-custom .row { row-gap: 2rem; }
  .footer-custom .footer-brand,
  .footer-custom p,
  .footer-custom ul,
  .footer-custom h6 { text-align: left; }
  .footer-custom ul { padding-left: 0; }
  .footer-custom li { margin-bottom: 0.4rem; }
  .footer-custom h6 { font-size: 0.95rem; }
  .footer-seo-text { max-width: 100%; font-size: 0.9rem; }
  .footer-keywords { font-size: 0.7rem; line-height: 1.6; }
  .content-image-wrap { margin-bottom: 1rem; border-radius: var(--radius-sm); }
  .container { padding-left: 1rem; padding-right: 1rem; max-width: 100%; }
  section.py-5 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  .gradient-bg-soft.rounded-4 { border-radius: var(--radius-md) !important; padding: 1.25rem !important; }
  .home-hero-control { width: 2.5rem; height: 2.5rem; }
  .home-hero-control i { font-size: 1.1rem; }
  .home-hero-indicators { bottom: 4.5rem; }
}

/* Small (mobile landscape / large phone, 576px–767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section { min-height: 60vh; padding: 2.5rem 0; }
  .hero-title { font-size: clamp(1.75rem, 5vw, 2.25rem); }
  .footer-custom .footer-main-row > :first-child { flex: 0 0 50%; max-width: 50%; }
}

/* Medium (tablet, 768px–991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  body { padding-top: 72px; }
  .hero-section { min-height: 70vh; padding: 3rem 0; }
  .navbar-collapse { padding: 0.75rem 0; }
  .footer-custom .row { row-gap: 1rem; }
}

/* Large (desktop, 992px–1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section { min-height: 80vh; }
}

/* Extra large (large desktop / small TV, 1200px–1399px) */
@media (min-width: 1200px) {
  .container { max-width: 1140px; }
}

/* XXL (TV / ultra-wide, 1400px+) */
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
  body { font-size: 1.0625rem; }
  .hero-title { font-size: clamp(2.25rem, 2.5vw, 3.5rem); }
  .section-title { font-size: clamp(2rem, 1.8vw, 2.5rem); }
  .footer-custom { padding: 2.25rem 0 1.5rem; }
  .footer-custom .row { margin-bottom: 0.5rem; }
}

/* Touch-friendly: ensure tap targets on touch devices */
@media (hover: none) and (pointer: coarse) {
  .nav-link-custom, .btn-nav-cta, .btn-primary-custom, .btn-outline-custom { min-height: 44px; }
  .form-control-custom { min-height: 48px; }
  .card-custom:hover { transform: none; }
  .card-custom:active { opacity: 0.95; }
}

/* Prevent horizontal scroll on any screen */
img { max-width: 100%; height: auto; }
