/* =============================================
   BlueCo — Custom Stylesheet
   HTML5 + CSS3 + Bootstrap 5
   ============================================= */

:root {
  --blueco-bg: #769eca;
  --blueco-card: #f3efe6;
  --blueco-text: #000000;
  --blueco-white: #ffffff;
  --blueco-dark: #0a2d5c;
  --blueco-dark-hover: #0c3870;
  --blueco-footer: #061e3d;
  --blueco-accent: #769eca;
  --blueco-star: #f5a623;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
  --neon-border: 1px solid rgba(118, 158, 202, 0.42);
  --neon-border-hover: 1px solid rgba(173, 206, 232, 0.95);
  --neon-glow: 0 0 10px rgba(118, 158, 202, 0.28), 0 0 22px rgba(10, 45, 92, 0.12), 0 8px 28px rgba(0, 0, 0, 0.08);
  --neon-glow-hover: 0 0 8px rgba(255, 255, 255, 0.28), 0 0 18px rgba(118, 158, 202, 0.62), 0 0 36px rgba(10, 45, 92, 0.28), 0 14px 32px rgba(0, 0, 0, 0.12);
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --section-py: 100px;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--blueco-bg);
  color: var(--blueco-white);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

.paw-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.2;
}

.paw-bg .paw {
  position: absolute;
  width: 42px;
  height: 42px;
  background-image: url('../images/dogs/paw.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: brightness(0.75) saturate(0.7);
  transform: rotate(var(--paw-rot, 0deg));
}

.paw-bg .paw-1 { left: 5%; top: 18%; --paw-rot: -12deg; }
.paw-bg .paw-2 { left: 10%; top: 60%; --paw-rot: 18deg; }
.paw-bg .paw-3 { right: 10%; top: 14%; --paw-rot: 14deg; }
.paw-bg .paw-4 { right: 6%; top: 58%; --paw-rot: -16deg; }
.paw-bg .paw-5 { left: 24%; top: 82%; --paw-rot: 12deg; }
.paw-bg .paw-6 { right: 26%; top: 78%; --paw-rot: -10deg; }
.paw-bg .paw-7 { left: 48%; top: 20%; --paw-rot: 8deg; }
.paw-bg .paw-8 { right: 44%; top: 68%; --paw-rot: -18deg; }

header,
main,
footer {
  position: relative;
  z-index: 1;
}

header {
  z-index: 1100;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  transition: color var(--transition), background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

/* ---- Typography ---- */
.section-heading-serif {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.02em;
  line-height: 1.15;
  transition: text-shadow 0.35s var(--ease-premium), letter-spacing 0.35s var(--ease-premium);
}

.section-heading-serif:hover {
  letter-spacing: 0.045em;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.35), 0 0 28px rgba(118, 158, 202, 0.4);
}

.hero-text,
.section-text {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.8;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.75s ease, transform 0.75s ease, filter 0.75s ease;
  will-change: opacity, transform, filter;
}

.hero-text.visible,
.section-text.visible {
  opacity: 0.95;
  transform: translateY(0);
  filter: blur(0);
}

.hero-text + .hero-text,
.section-text + .section-text {
  transition-delay: 0.12s;
}

/* ---- Buttons ---- */
.btn-blueco-primary,
.btn-blueco-cream,
.btn-blueco-outline {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s var(--ease-premium), background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.btn-blueco-primary::before,
.btn-blueco-cream::before,
.btn-blueco-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  left: -130%;
  width: 55%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
  pointer-events: none;
  z-index: 0;
}

.btn-blueco-primary > *,
.btn-blueco-cream > *,
.btn-blueco-outline > * {
  position: relative;
  z-index: 1;
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease-premium);
}

.btn-blueco-primary {
  background-color: var(--blueco-dark);
  color: var(--blueco-white);
  border: 2px solid var(--blueco-dark);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.75rem;
  letter-spacing: 0.02em;
}

.btn-blueco-cream {
  background-color: var(--blueco-card);
  color: var(--blueco-dark);
  border: 2px solid var(--blueco-card);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.75rem;
}

.btn-blueco-outline {
  background-color: transparent;
  color: var(--blueco-white);
  border: 2px solid var(--blueco-white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.75rem;
}

@media (hover: hover) and (pointer: fine) {
  .btn-blueco-primary:hover,
  .btn-blueco-primary:focus {
    background-color: var(--blueco-dark-hover);
    border-color: #9ec4e4;
    color: var(--blueco-white);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 22px rgba(10, 45, 92, 0.38), 0 0 18px rgba(118, 158, 202, 0.55);
  }

  .btn-blueco-cream:hover,
  .btn-blueco-cream:focus {
    background-color: var(--blueco-white);
    border-color: var(--blueco-white);
    color: var(--blueco-dark);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 22px rgba(243, 239, 230, 0.28), 0 0 16px rgba(255, 255, 255, 0.35);
  }

  .btn-blueco-outline:hover,
  .btn-blueco-outline:focus {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--blueco-white);
    border-color: var(--blueco-white);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
  }

  .btn-blueco-primary:hover::before,
  .btn-blueco-cream:hover::before,
  .btn-blueco-outline:hover::before,
  .btn-blueco-primary:focus::before,
  .btn-blueco-cream:focus::before,
  .btn-blueco-outline:focus::before {
    left: 140%;
  }

  .btn-blueco-primary:hover .btn-arrow,
  .btn-blueco-cream:hover .btn-arrow,
  .btn-blueco-outline:hover .btn-arrow {
    transform: translateX(4px);
  }
}

.btn-blueco-primary:active,
.btn-blueco-cream:active,
.btn-blueco-outline:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 2px 8px rgba(10, 45, 92, 0.2);
}

/* ---- Navbar ---- */
.blueco-navbar {
  background-color: var(--blueco-white);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  z-index: 1050;
}

.blueco-navbar.scrolled {
  background-color: var(--blueco-white);
  box-shadow: 0 4px 24px rgba(10, 45, 92, 0.16);
  padding: 0.7rem 0;
}

.blueco-logo {
  display: inline-flex;
  align-items: center;
  width: 160px;
  height: 92px;
  margin-right: 1rem;
  overflow: hidden;
}

.blueco-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.blueco-navbar .nav-link {
  color: var(--blueco-dark) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1.1rem !important;
  position: relative;
  transition: opacity 0.35s ease, text-shadow 0.35s ease;
}

.blueco-navbar .nav-link:hover,
.blueco-navbar .nav-link:focus {
  color: var(--blueco-dark-hover) !important;
  opacity: 1;
  text-shadow: 0 0 10px rgba(118, 158, 202, 0.35);
}

.blueco-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.15rem;
  left: 1.1rem;
  width: 0;
  height: 2px;
  background: var(--blueco-dark);
  box-shadow: 0 0 8px rgba(118, 158, 202, 0.45);
  transition: width 0.35s var(--ease-premium);
}

.blueco-navbar .nav-link:hover::after,
.blueco-navbar .nav-link:focus::after,
.blueco-navbar .nav-link.active::after {
  width: calc(100% - 2.2rem);
}

.blueco-navbar .nav-link.active {
  font-weight: 600;
  opacity: 1;
}

.navbar-toggler {
  border-color: rgba(10, 45, 92, 0.35);
  padding: 0.4rem 0.6rem;
}

.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='rgba(10,45,92,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse .btn-blueco-primary {
  margin-top: 1rem;
  display: inline-flex !important;
}

@media (min-width: 992px) {
  .navbar-collapse {
    display: flex !important;
    align-items: center;
  }

  .navbar-collapse .btn-blueco-primary {
    margin-top: 0;
    margin-left: 0.5rem;
    display: inline-flex !important;
  }
}

/* ---- Decorative Elements ---- */
.dot-grid {
  width: 80px;
  height: 80px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.35) 2px, transparent 2px);
  background-size: 12px 12px;
  opacity: 0.6;
}

.dot-grid-top-left {
  position: absolute;
  top: 120px;
  left: 40px;
}

.dot-grid-small {
  width: 60px;
  height: 60px;
}

.glow-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.glow-circle-hero {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -150px;
}

.glow-circle-care {
  width: 400px;
  height: 400px;
  top: 50%;
  right: -100px;
  transform: translateY(-50%);
}

.glow-circle-why {
  width: 450px;
  height: 450px;
  bottom: -100px;
  left: -100px;
}

/* ---- Section: Hero / Our Story ---- */
.section-hero {
  position: relative;
  padding: calc(var(--section-py) + 60px) 0 var(--section-py);
  overflow: hidden;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s ease;
}

.hero-image-wrap:hover {
  transform: translateY(-6px);
  box-shadow: var(--neon-glow-hover);
}

.hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--neon-glow);
  border: var(--neon-border);
  transition: transform 0.45s var(--ease-premium), box-shadow 0.35s ease, border-color 0.35s ease;
}

.hero-image-wrap:hover .hero-image {
  transform: scale(1.03);
  border-color: rgba(173, 206, 232, 0.95);
  box-shadow: var(--neon-glow-hover);
}

.review-card {
  position: absolute;
  bottom: -20px;
  right: -10px;
  z-index: 2;
  background-color: var(--blueco-dark);
  color: var(--blueco-white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  max-width: 280px;
  border: 1px solid rgba(118, 158, 202, 0.45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18), 0 0 16px rgba(118, 158, 202, 0.35);
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s ease, border-color 0.35s ease;
}

.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  gap: 0.75rem;
}

.review-label {
  font-weight: 600;
  font-size: 0.85rem;
}

.review-stars {
  color: var(--blueco-star);
  font-size: 0.75rem;
  display: flex;
  gap: 2px;
}

.review-text {
  font-size: 0.8rem;
  line-height: 1.5;
  opacity: 0.9;
}

@media (max-width: 991px) {
  .review-card {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: -30px;
    margin-left: auto;
    margin-right: 1rem;
  }

  .dot-grid-top-left {
    display: none;
  }
}

/* ---- Section: Why We Care ---- */
.section-why-care {
  position: relative;
  padding: var(--section-py) 0;
  overflow: hidden;
}

.comparison-card {
  background-color: var(--blueco-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--blueco-text);
  border: var(--neon-border);
  box-shadow: var(--neon-glow);
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s ease, border-color 0.35s ease;
}

.comparison-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--blueco-text);
}

.comparison-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.comparison-list li i {
  flex-shrink: 0;
  margin-top: 3px;
  font-size: 1rem;
}

.text-blueco-accent {
  color: var(--blueco-accent) !important;
}

.comparison-col {
  padding: 0 1rem;
}

.comparison-them {
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 767px) {
  .comparison-them {
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
  }

  .comparison-col {
    padding: 0;
  }
}

/* ---- Section: Proven Results ---- */
.section-results {
  padding: var(--section-py) 0;
}

.results-subheading {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.9;
}

.stat-card {
  background-color: var(--blueco-card);
  color: var(--blueco-text);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  min-height: 300px;
  height: 100%;
  border: var(--neon-border);
  box-shadow: var(--neon-glow);
  animation: neonPulse 6s ease-in-out infinite;
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s ease, border-color 0.35s ease;
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.75rem;
  color: var(--blueco-text);
}

.stat-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--blueco-text);
}

.stat-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 0;
  color: rgba(0, 0, 0, 0.75);
}

/* ---- Carousel Navigation ---- */
.carousel-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.carousel-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: var(--blueco-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}

.carousel-nav-btn:hover,
.carousel-nav-btn:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--blueco-white);
  transform: scale(1.05);
}

.carousel-indicators-custom {
  display: flex;
  gap: 0.5rem;
}

.carousel-indicators-custom button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.4);
  padding: 0;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}

.carousel-indicators-custom button.active {
  background-color: var(--blueco-white);
  transform: scale(1.2);
}

#resultsCarousel .carousel-indicators,
#testimonialCarousel .carousel-indicators {
  display: none;
}

#resultsCarousel .carousel-item .row > [class*="col-"],
#testimonialCarousel .carousel-item .row > [class*="col-"] {
  display: flex;
}

#resultsCarousel .stat-card,
#testimonialCarousel .testimonial-card {
  width: 100%;
}

/* Override carousel overflow to allow cards to expand on hover */
#resultsCarousel .carousel-inner,
#testimonialCarousel .carousel-inner {
  overflow: visible;
  position: relative;
  overflow-anchor: none;
}

#resultsCarousel .carousel-item,
#testimonialCarousel .carousel-item {
  overflow: visible;
  position: relative;
}

#testimonialCarousel .carousel-item {
  height: auto;
}

#testimonialCarousel .carousel-item .row {
  height: auto;
  margin-top: 0;
  margin-bottom: 0;
}

#testimonialCarousel {
  overflow-anchor: none;
}

.section-testimonials {
  overflow-anchor: none;
}

#testimonialCarousel .testimonial-card {
  min-height: 0;
  height: auto;
}

/* ---- Section: Our Process ---- */
.section-process {
  padding: var(--section-py) 0;
}

.process-card {
  background-color: var(--blueco-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--blueco-text);
  border: var(--neon-border);
  box-shadow: var(--neon-glow);
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s ease, border-color 0.35s ease;
}

.process-step {
  height: 100%;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  transition: transform 0.35s var(--ease-premium);
}

.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--blueco-dark);
  color: var(--blueco-white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 0 10px rgba(118, 158, 202, 0.45);
  animation: glowPulse 3.6s ease-in-out infinite;
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s ease;
}

.process-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--blueco-text);
}

.process-step-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 0;
  color: rgba(0, 0, 0, 0.75);
}

/* ---- Section: Services ---- */
.section-services {
  padding: var(--section-py) 0;
}

.service-card {
  background-color: var(--blueco-card);
  color: var(--blueco-text);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  border: var(--neon-border);
  box-shadow: var(--neon-glow);
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s ease, border-color 0.35s ease;
}

.service-card > .btn {
  align-self: flex-start;
  flex: 0 0 auto;
  width: auto;
}

.service-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(118, 158, 202, 0.6);
  border-radius: 50%;
  background-color: rgba(118, 158, 202, 0.16);
  color: var(--blueco-dark);
  font-size: 1.35rem;
  box-shadow: 0 0 12px rgba(118, 158, 202, 0.35);
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s ease, background-color 0.35s ease;
}

.service-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
  color: var(--blueco-text);
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex-grow: 1;
}

.service-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  color: rgba(0, 0, 0, 0.8);
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background-color: var(--blueco-dark);
  border-radius: 50%;
}

/* ---- Section: Why BlueCo ---- */
.section-why-blueco {
  position: relative;
  padding: var(--section-py) 0;
  overflow: hidden;
}

.feature-block {
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  border: var(--neon-border);
  box-shadow: var(--neon-glow);
  animation: neonPulse 6s ease-in-out infinite;
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--blueco-white);
  margin-bottom: 0.75rem;
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s ease, background-color 0.35s ease;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--blueco-white);
}

.feature-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 0;
  opacity: 0.9;
}

.why-blueco-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: var(--neon-border);
  box-shadow: var(--neon-glow);
  transition: transform 0.45s var(--ease-premium), box-shadow 0.35s ease, border-color 0.35s ease;
}

.why-blueco-image:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(173, 206, 232, 0.95);
  box-shadow: var(--neon-glow-hover);
}

@media (max-width: 991px) {
  .section-why-blueco .section-heading-serif {
    text-align: center;
  }
}

/* ---- Section: Team ---- */
.section-team {
  padding: var(--section-py) 0;
}

.team-card {
  text-align: center;
  padding: 0.75rem;
  border: var(--neon-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--neon-glow);
  animation: neonPulse 6s ease-in-out infinite;
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s ease, border-color 0.35s ease;
}

.team-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 14px rgba(118, 158, 202, 0.25);
  transition: transform 0.4s var(--ease-premium), box-shadow 0.35s ease, border-color 0.35s ease;
}

.team-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--blueco-white);
  transition: text-shadow 0.35s ease, letter-spacing 0.35s ease;
}

.team-role {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 0;
}

/* ---- Section: Testimonials ---- */
.section-testimonials {
  padding: var(--section-py) 0;
}

.testimonial-card {
  background-color: var(--blueco-card);
  color: var(--blueco-text);
  border-radius: var(--radius-lg);
  padding: 2rem;
  min-height: 300px;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  border: var(--neon-border);
  box-shadow: var(--neon-glow);
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s ease, border-color 0.35s ease;
}

.testimonial-quote {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  color: rgba(0, 0, 0, 0.85);
}

.testimonial-quote::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: 0.15rem;
  color: var(--blueco-accent);
}

.testimonial-stars {
  color: var(--blueco-star);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 3px;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.testimonial-author strong {
  font-size: 0.95rem;
  color: var(--blueco-text);
}

.testimonial-author span {
  font-size: 0.82rem;
  color: rgba(0, 0, 0, 0.6);
}

/* ---- Section: CTA ---- */
.section-cta {
  background-color: var(--blueco-dark);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--blueco-white);
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.3;
  transition: text-shadow 0.35s ease, letter-spacing 0.35s ease;
}

.cta-heading:hover {
  letter-spacing: 0.02em;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.35), 0 0 32px rgba(118, 158, 202, 0.45);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ---- Footer ---- */
.blueco-footer {
  background-color: var(--blueco-footer);
  padding: 60px 0 30px;
  color: var(--blueco-white);
}

.newsletter-box {
  padding: 0.25rem;
}

.newsletter-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: text-shadow 0.35s ease;
}

.newsletter-title:hover {
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.newsletter-desc {
  font-size: 0.88rem;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.newsletter-form .form-control {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--blueco-white);
  border-radius: 50px 0 0 50px;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
}

.newsletter-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .form-control:focus {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--blueco-white);
  box-shadow: none;
}

.newsletter-form .btn {
  border-radius: 0 50px 50px 0;
  padding: 0.65rem 1.5rem;
  white-space: nowrap;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  position: relative;
  display: inline-block;
  transition: color 0.35s ease, text-shadow 0.35s ease, letter-spacing 0.35s ease;
}

.footer-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--blueco-white);
  transition: width 0.35s var(--ease-premium);
}

.footer-links a:hover {
  color: var(--blueco-white);
  letter-spacing: 0.02em;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blueco-white);
  display: inline-block;
  margin-bottom: 1.25rem;
  transition: text-shadow 0.35s ease, letter-spacing 0.35s ease;
}

.footer-logo:hover {
  letter-spacing: 0.04em;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.5);
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blueco-white);
  font-size: 1rem;
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}

.social-icons a:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--blueco-white);
  transform: translateY(-3px) rotate(-8deg);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.3);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.15);
  margin: 2.5rem 0 1.5rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.copyright {
  font-size: 0.82rem;
  opacity: 0.7;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
}

.footer-legal a:hover {
  color: var(--blueco-white);
}

.footer-legal .separator {
  opacity: 0.4;
}

@media (max-width: 991px) {
  .social-icons {
    justify-content: flex-start;
  }

  .blueco-footer .text-lg-end {
    text-align: left !important;
  }
}

/* ---- Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay {
  transition-delay: 0.15s;
}

.fade-in-delay-2 {
  transition-delay: 0.3s;
}

.fade-in-delay-3 {
  transition-delay: 0.45s;
}

.fade-in-delay-4 {
  transition-delay: 0.6s;
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.visible,
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

.comparison-card,
.process-card,
.service-card,
.testimonial-card,
.review-card {
  animation: neonPulse 6s ease-in-out infinite;
}

/* ---- Focus States (Accessibility) ---- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible {
  outline: 2px solid var(--blueco-white);
  outline-offset: 3px;
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 767px) {
  :root {
    --section-py: 70px;
  }

  .container {
    max-width: 100%;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .row {
    margin-left: 0;
    margin-right: 0;
  }

  .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  .section-hero {
    padding-top: calc(var(--section-py) + 50px);
  }

  .section-heading-serif {
    font-size: clamp(1.8rem, 7vw, 2.5rem) !important;
    line-height: 1.2;
    text-align: left;
  }

  .hero-text,
  .section-text,
  .service-list li,
  .feature-desc li,
  .team-name,
  .team-role,
  .testimonial-quote,
  .stat-desc,
  .process-step-desc {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }

  .comparison-card,
  .process-card {
    padding: 1.75rem;
  }

  .stat-card,
  .service-card,
  .testimonial-card {
    padding: 1.75rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 320px;
  }

  .blueco-logo {
    width: 120px;
    height: 72px;
  }

  .story-hover,
  .care-hover,
  .process-hover {
    display: block;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .section-hero,
  .section-why-care,
  .section-results,
  .section-process,
  .section-services,
  .section-why-blueco,
  .section-team,
  .section-testimonials {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .section-heading-serif {
    font-size: clamp(1.6rem, 8vw, 2.1rem) !important;
    letter-spacing: 0.01em;
  }

  .hero-text,
  .section-text,
  .service-list li,
  .feature-desc li,
  .team-name,
  .team-role,
  .testimonial-quote,
  .stat-desc,
  .process-step-desc {
    font-size: 0.88rem !important;
  }

  .comparison-card,
  .process-card,
  .service-card,
  .testimonial-card,
  .stat-card,
  .feature-block,
  .team-card {
    padding: 1.25rem;
  }

  .comparison-list li {
    font-size: 0.82rem;
  }

  .review-card {
    max-width: 100%;
    margin-right: 0;
    padding: 1rem;
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 1rem;
  }

  .review-text {
    font-size: 0.75rem;
  }

  .btn-blueco-primary,
  .btn-blueco-cream,
  .btn-blueco-outline {
    width: 100%;
    max-width: 260px;
  }

  .newsletter-form {
    display: block;
  }

  .newsletter-form .form-control,
  .newsletter-form .btn {
    width: 100%;
    border-radius: 50px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ---- Background ambiance (keeps #769eca) ---- */
.bg-ambiance {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-ambiance::before {
  content: '';
  position: absolute;
  inset: -10% -6% -6% -8%;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.14), transparent 30%),
              radial-gradient(circle at 80% 40%, rgba(10, 45, 92, 0.12), transparent 28%),
              radial-gradient(circle at 50% 82%, rgba(255, 255, 255, 0.1), transparent 26%);
  animation: backgroundDrift 16s ease-in-out infinite alternate;
  opacity: 0.85;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.22;
  animation: orbFloat 18s ease-in-out infinite;
}

.bg-orb-1 {
  width: 340px;
  height: 340px;
  top: 8%;
  left: -80px;
  background: rgba(255, 255, 255, 0.35);
}

.bg-orb-2 {
  width: 280px;
  height: 280px;
  top: 42%;
  right: -60px;
  background: rgba(10, 45, 92, 0.28);
  animation-duration: 22s;
  animation-delay: -4s;
}

.bg-orb-3 {
  width: 220px;
  height: 220px;
  bottom: 12%;
  left: 18%;
  background: rgba(255, 255, 255, 0.2);
  animation-duration: 20s;
  animation-delay: -8s;
}

.bg-orb-4 {
  width: 180px;
  height: 180px;
  top: 70%;
  right: 22%;
  background: rgba(10, 45, 92, 0.18);
  animation-duration: 16s;
  animation-delay: -2s;
}

.bg-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 0 18px rgba(118, 158, 202, 0.5);
  animation: sparkDrift 14s ease-in-out infinite;
}

.bg-spark-1 { top: 18%; left: 12%; animation-delay: 0s; }
.bg-spark-2 { top: 34%; left: 78%; animation-delay: -2s; width: 5px; height: 5px; }
.bg-spark-3 { top: 58%; left: 22%; animation-delay: -5s; }
.bg-spark-4 { top: 72%; left: 64%; animation-delay: -7s; width: 4px; height: 4px; }
.bg-spark-5 { top: 12%; left: 48%; animation-delay: -3s; }
.bg-spark-6 { top: 86%; left: 40%; animation-delay: -9s; }

@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(12px, -18px, 0) scale(1.05); }
}

@keyframes sparkDrift {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.35; }
  50% { transform: translate3d(10px, -18px, 0); opacity: 0.8; }
}

@keyframes paragraphReveal {
  0% {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes backgroundDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.32;
  }
  50% {
    transform: translate3d(14px, -12px, 0) scale(1.04);
    opacity: 0.52;
  }
  100% {
    transform: translate3d(-10px, 8px, 0) scale(1.06);
    opacity: 0.38;
  }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(118, 158, 202, 0.35); }
  50% { box-shadow: 0 0 16px rgba(118, 158, 202, 0.7); }
}

@keyframes neonPulse {
  0%, 100% {
    box-shadow: var(--neon-glow);
  }
  50% {
    box-shadow: 0 0 16px rgba(173, 206, 232, 0.5), 0 0 30px rgba(118, 158, 202, 0.28), 0 8px 28px rgba(0, 0, 0, 0.08);
  }
}

.stat-number {
  transition: text-shadow 0.35s ease, letter-spacing 0.35s ease;
}

.service-title,
.comparison-title,
.process-step-title,
.feature-title {
  transition: text-shadow 0.35s ease, letter-spacing 0.35s ease, color 0.35s ease;
}

.carousel-nav-btn {
  transition: background-color 0.35s ease, border-color 0.35s ease, transform 0.35s var(--ease-premium), box-shadow 0.35s ease;
}

.section-cta {
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118, 158, 202, 0.28) 0%, transparent 70%);
  top: -80px;
  right: -40px;
  pointer-events: none;
  animation: orbFloat 16s ease-in-out infinite;
}

@media (hover: hover) and (pointer: fine) {
  .stat-card:hover,
  .service-card:hover,
  .testimonial-card:hover,
  .comparison-card:hover,
  .process-card:hover,
  .review-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(173, 206, 232, 0.95);
    box-shadow: var(--neon-glow-hover);
  }

  .stat-card:hover .stat-number,
  .service-card:hover .service-title,
  .comparison-card:hover .comparison-title,
  .process-step:hover .process-step-title {
    letter-spacing: 0.02em;
    text-shadow: 0 0 12px rgba(118, 158, 202, 0.35);
  }

  .process-step:hover {
    transform: translateY(-4px);
  }

  .process-step:hover .process-number {
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(118, 158, 202, 0.7);
  }

  .feature-block:hover {
    transform: translateY(-6px);
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.16);
  }

  .feature-block:hover .feature-icon {
    transform: translateY(-2px) rotate(-8deg) scale(1.08);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
    background-color: rgba(255, 255, 255, 0.22);
  }

  .feature-block:hover .feature-title {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
  }

  .service-card:hover .service-icon {
    transform: translateY(-3px) rotate(-6deg) scale(1.08);
    background-color: rgba(118, 158, 202, 0.28);
    box-shadow: 0 0 18px rgba(118, 158, 202, 0.6);
  }

  .team-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(173, 206, 232, 0.95);
    box-shadow: var(--neon-glow-hover);
  }

  .team-card:hover .team-photo {
    transform: translateY(-6px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12), 0 0 20px rgba(118, 158, 202, 0.45);
  }

  .team-card:hover .team-name {
    letter-spacing: 0.03em;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
  }

  .why-blueco-image:hover {
    transform: scale(1.03);
    box-shadow: var(--neon-glow-hover);
  }

  .carousel-nav-btn:hover,
  .carousel-nav-btn:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--blueco-white);
    transform: scale(1.08);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bg-orb,
  .bg-spark,
  .process-number,
  .comparison-card,
  .process-card,
  .service-card,
  .stat-card,
  .testimonial-card,
  .feature-block,
  .team-card,
  .review-card,
  .section-cta::before,
  .btn-blueco-primary::before,
  .btn-blueco-cream::before,
  .btn-blueco-outline::before {
    animation: none !important;
  }

  .fade-in,
  .fade-in-left,
  .fade-in-right,
  .scale-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .btn-blueco-primary:hover,
  .btn-blueco-cream:hover,
  .btn-blueco-outline:hover,
  .stat-card:hover,
  .service-card:hover,
  .testimonial-card:hover,
  .comparison-card:hover,
  .process-card:hover,
  .feature-block:hover,
  .review-card:hover {
    transform: none;
  }
}

/* ---- Viewport-safe layout hardening ----
   Keep every section fluid between Bootstrap breakpoints and prevent
   decorative layers or flex children from widening the document. */
html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

input,
textarea,
[contenteditable="true"] {
  user-select: text;
}

.container,
.container-fluid {
  width: 100%;
  min-width: 0;
}

.row > *,
.navbar > .container,
.navbar > .container-fluid,
.navbar-collapse,
.navbar-nav {
  min-width: 0;
}

.bg-ambiance,
.paw-bg {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.blueco-navbar .container {
  min-height: 64px;
}

.blueco-logo {
  width: clamp(108px, 11vw, 148px);
  height: clamp(58px, 6vw, 76px);
  flex: 0 1 auto;
  margin-right: clamp(0.5rem, 1.5vw, 1rem);
}

.blueco-navbar .navbar-nav {
  flex-wrap: wrap;
}

.hero-text,
.section-text,
.comparison-item p,
.service-list li,
.process-step-desc,
.feature-desc,
.testimonial-quote,
.review-text,
.stat-desc,
.cta-heading {
  overflow-wrap: anywhere;
}

.hero-image,
.why-blueco-image,
.team-photo {
  max-width: 100%;
}

@media (min-width: 992px) {
  .blueco-navbar .navbar-nav {
    flex: 1 1 auto;
    justify-content: center;
  }

  .blueco-navbar .navbar-collapse {
    flex: 1 1 auto;
  }

  .blueco-navbar .navbar-collapse > .btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 991px) {
  .blueco-navbar .navbar-collapse {
    padding-bottom: 0.5rem;
  }

  .blueco-navbar .navbar-nav {
    flex-wrap: nowrap;
  }
}

@media (max-width: 575px) {
  .blueco-logo {
    width: clamp(84px, 25vw, 100px);
    height: clamp(48px, 15vw, 58px);
  }

  .blueco-navbar .container {
    min-height: 52px;
  }
}

@media (max-width: 767px) {
  /* Keep mobile scrolling light and the background visually stationary. */
  .bg-ambiance {
    display: none;
  }

  .paw-bg {
    display: block;
    opacity: 0.28;
    position: absolute;
    height: 100%;
  }

  .paw-bg .paw {
    width: clamp(28px, 10vw, 42px);
    height: clamp(28px, 10vw, 42px);
  }

  .section-why-blueco .feature-block {
    padding: 0.5rem !important;
    border-radius: 12px;
  }

  .section-why-blueco .feature-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 0.3rem;
    font-size: 0.75rem;
  }

  .section-why-blueco .feature-title {
    font-size: 0.7rem !important;
    line-height: 1.15;
    margin-bottom: 0.2rem;
  }

  .section-why-blueco .feature-block ul {
    margin: 0;
    padding-left: 0.9rem;
  }

  .section-why-blueco .feature-block li,
  .section-why-blueco .feature-block li[style] {
    font-size: 0.62rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.15rem;
  }

  .section-team .team-card {
    padding: 0.5rem !important;
    border-radius: 12px;
  }

  .section-team .team-photo {
    aspect-ratio: 3 / 4;
    margin-bottom: 0.35rem;
    border-radius: 8px;
  }

  .section-team .team-name,
  .section-team .team-name[style] {
    font-size: 0.65rem !important;
    line-height: 1.15;
    margin-bottom: 0.1rem;
  }

  .section-team .team-role,
  .section-team .team-role[style] {
    font-size: 0.56rem !important;
    line-height: 1.15;
  }

  body {
    user-select: none;
  }

  .btn-blueco-primary,
  .btn-blueco-cream,
  .btn-blueco-outline {
    min-height: 36px;
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
  }

  .carousel-nav-wrap {
    gap: 0.65rem;
    margin-top: 1.5rem;
  }

  .carousel-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .cta-buttons .btn {
    max-width: 240px;
  }

  .blueco-navbar {
    padding: clamp(0.35rem, 1.5vw, 0.55rem) 0;
  }

  .blueco-navbar .container {
    padding-left: clamp(0.75rem, 4vw, 1rem);
    padding-right: clamp(0.75rem, 4vw, 1rem);
  }

  .blueco-navbar .navbar-collapse {
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }

  .blueco-navbar .navbar-collapse > .btn-blueco-primary {
    display: flex !important;
    width: min(100%, 220px);
    margin: 0.75rem auto 0;
  }

  /* Keep the comparison table in the same two-column form as the tablet view. */
  .comparison-card {
    padding: 0.75rem;
  }

  .comparison-header,
  .comparison-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .comparison-column-header {
    padding: 0.7rem 0.35rem;
    font-size: clamp(0.8rem, 3.2vw, 1rem);
  }

  .comparison-cell {
    min-height: 0;
    padding: 0.65rem 0.45rem;
    border-right: 1px solid rgba(10, 45, 92, 0.12);
  }

  .comparison-item {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 0.35rem;
  }

  .comparison-item p {
    font-size: clamp(0.68rem, 2.35vw, 0.82rem) !important;
    line-height: 1.35;
  }

  .comparison-icon {
    width: 22px;
    height: 22px;
    font-size: 0.65rem;
    border-width: 1px;
  }

  .comparison-icon-bad i {
    font-size: 0.7rem;
  }

  .hero-image,
  .why-blueco-image {
    width: 92%;
    margin-left: auto;
    margin-right: auto;
  }

  /* Match the compact proportions of the two-column comparison table. */
  .stat-card,
  .service-card,
  .process-card,
  .testimonial-card {
    padding: 0.75rem;
  }

  .stat-card {
    min-height: 0;
  }

  .service-card {
    min-height: 0;
  }

  .process-card {
    padding: 0.75rem;
  }

  .testimonial-card {
    padding: 0.75rem;
  }

  .service-title,
  .stat-title,
  .process-step-title {
    font-size: clamp(0.75rem, 3vw, 0.92rem);
  }

  .service-list li,
  .stat-desc,
  .process-step-desc,
  .testimonial-quote {
    font-size: clamp(0.68rem, 2.35vw, 0.82rem) !important;
    line-height: 1.35 !important;
  }

  .process-step {
    padding: 0.25rem;
  }

  .stat-number {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .service-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
  }

  .section-why-blueco .feature-block {
    padding: 0.6rem;
  }

  .section-why-blueco .feature-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
  }

  .section-why-blueco .feature-title {
    font-size: 0.78rem;
    line-height: 1.25;
    margin-bottom: 0.3rem;
  }

  .section-why-blueco .feature-desc,
  .section-why-blueco .feature-desc li {
    font-size: clamp(0.68rem, 2.35vw, 0.82rem) !important;
    line-height: 1.35;
  }

  .section-why-blueco .feature-block li {
    font-size: clamp(0.68rem, 2.35vw, 0.82rem) !important;
    line-height: 1.35;
  }

  .review-card {
    max-width: min(88%, 250px);
    padding: 0.65rem 0.75rem;
    margin-top: 0.75rem;
  }

  .review-card-header {
    margin-bottom: 0.3rem;
    gap: 0.4rem;
  }

  .review-label {
    font-size: 0.7rem;
  }

  .review-stars {
    font-size: 0.6rem;
  }

  .review-text {
    font-size: 0.68rem !important;
    line-height: 1.35;
  }

}

@media (max-width: 480px) {
  .section-hero {
    padding-top: 110px;
  }

  .blueco-navbar .navbar-toggler {
    padding: clamp(0.2rem, 1.5vw, 0.35rem) clamp(0.35rem, 2vw, 0.55rem);
  }
}

@media (max-width: 767px) {
  .section-team .row > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
    width: 50%;
  }

  .section-team .team-card {
    padding: 0.5rem;
    border-radius: var(--radius-md);
  }

  .section-team .team-photo {
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
  }

  .section-team .team-name {
    font-size: clamp(0.68rem, 2.8vw, 0.82rem) !important;
    line-height: 1.25;
    margin-bottom: 0.15rem;
  }

  .section-team .team-role {
    font-size: clamp(0.6rem, 2.35vw, 0.72rem) !important;
    line-height: 1.3;
  }

  .section-testimonials {
    padding-bottom: 90px;
    overflow: visible;
  }

  #testimonialCarousel {
    padding-bottom: 1rem;
  }

  #testimonialCarousel .carousel-inner {
    min-height: 0;
  }
}

/* Keep phone-sized layouts consistent through the 770px test viewport. */
@media only screen and (min-width: 360px) and (max-width: 780px) {
  .bg-ambiance {
    display: none;
  }

  .paw-bg {
    position: absolute;
    height: 100%;
    display: block;
    opacity: 0.28;
  }

  .paw-bg .paw {
    width: clamp(28px, 10vw, 42px);
    height: clamp(28px, 10vw, 42px);
  }

  .section-team .row > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
    width: 50%;
  }

  .section-team .team-card {
    padding: 0.5rem !important;
    border-radius: 12px;
  }

  .section-team .team-photo {
    aspect-ratio: 3 / 4;
    margin-bottom: 0.35rem;
    border-radius: 8px;
  }

  .section-team .team-name,
  .section-team .team-name[style] {
    font-size: 0.65rem !important;
    line-height: 1.15;
  }

  .section-team .team-role,
  .section-team .team-role[style] {
    font-size: 0.56rem !important;
    line-height: 1.15;
  }

  .section-why-blueco .feature-block {
    padding: 0.5rem !important;
    border-radius: 12px;
  }

  .section-why-blueco .feature-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 0.3rem;
    font-size: 0.75rem;
  }

  .section-why-blueco .feature-title {
    font-size: 0.7rem !important;
    line-height: 1.15;
  }

  .section-why-blueco .feature-block li,
  .section-why-blueco .feature-block li[style] {
    font-size: 0.62rem !important;
    line-height: 1.2 !important;
  }

  .btn-blueco-primary,
  .btn-blueco-cream,
  .btn-blueco-outline {
    min-height: 36px;
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
  }

  .carousel-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}
