/* ===================== Root Variables ===================== */
:root {
  --color-primary-dark: #c22a2b;
  --color-primary: #ca4848;
  --color-deep-blue: #1a5276;
  --color-dark-blue: #3c5060;
  --color-accent-blue: #5a758e;
  --color-accent-green: #bfdac4;
  --color-white: #ffffff;
  --color-black: #000000;
}

/* ===================== Global Reset & Typography ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
}

body {
  background-color: var(--color-white);
  color: var(--color-dark-blue);
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================== Fade & Scroll Animations ===================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.scale-up {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-up.visible {
  opacity: 1;
  transform: scale(1);
}

.scroll-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.scroll-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Hero Entrance Animation === */
@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  opacity: 0;
  animation: heroFadeUp 1s ease-out 0.3s forwards;
}

@keyframes buttonPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.cta-button:hover,
.risk-button:hover,
.footer-button:hover,
.mhf-button:hover,
.secondary-button:hover {
  animation: buttonPulse 0.3s ease-in-out;
}


/* ===================== Navbar ===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  background-color: rgba(255, 255, 255, 0.92);
  transition: background-color 0.6s ease, padding 0.6s ease, box-shadow 0.6s ease;
  padding: 1rem 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo-img {
  height: 100px;
  margin-top: 20px;
  transition: transform 0.6s ease;
}

.logo-link {
  display: inline-block;
  cursor: pointer;
}

.logo-link img {
  transition: transform 0.2s ease;
}

.logo-link:hover img {
  transform: scale(1.02);
}

.navbar.shrink .logo-img {
  height: 80px;
  margin-top: 10px;
  transform: scale(0.85);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin-top: 10px;
  margin-left: auto;
}

.nav-links a {
  color: var(--color-primary-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.4s ease;
}

.nav-links a:hover {
  color: var(--color-deep-blue);
  border-bottom: 2px solid var(--color-primary-dark);
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.nav-links a.active {
  border-bottom: 2px solid var(--color-primary-dark);
}

.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #2c3e50;
  margin: 5px 0;
}

/* Floating Logo */
.floating-logo-wrapper {
  position: absolute;
  top: -20px;
  left: calc((100vw - 1200px) / 2);
  z-index: 1002;
  transition: all 0.5s ease;
}

.floating-logo-box {
  background-color: white;
  padding: 1rem 2rem;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(var(--logo-scale, 1));
  transition: 
    transform 0.2s ease-out,
    padding 0.4s ease,
    box-shadow 0.6s ease;
  transform-origin: center top;
}

.navbar.shrink .floating-logo-box {
  padding: 0.5rem 1.5rem; /* reduce padding to shrink height */
  transform: scale(var(--logo-scale, 0.9));
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);

}

/* ===================== SCROLL TO TOP BUTTON ===================== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #c22a2b; /* your brand red */
  color: white;
  border: none;
  border-radius: 50%;
  padding: 0.75rem 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.scroll-top.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.scroll-top:hover {
  background-color: #a02121; /* darker hover red */
  transform: scale(1.1);
}


/* ===================== Hero Section ===================== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 140px;
}

.video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video.parallax {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(127, 110, 110, 0.35);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
  color: #ffffff;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.subheading {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-style: italic;
  font-weight: 300;
  display: block;
  margin-top: -0.2rem;
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-headline {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 600;
  margin: 1.5rem 0 1rem;
  color: #ffffff;
}

.hero-subheadline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* ===================== CTA Button ===================== */
.cta-button {
  background-color: var(--color-primary);
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
  background-color: var(--color-primary-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===================== All Section Styles ===================== */
section {
  padding: 5rem 0;
}

.section-title {
  position: relative;
  display: block;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  color: var(--color-deep-blue);
  font-weight: 600;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-dark-blue);
  margin: 1rem auto 2rem;
  max-width: 700px;
}

/* ===================== About Section ===================== */
.about {
  padding: 5rem 1.5rem;
  background-size: 200px;
}

.about-box {
  background: linear-gradient(to bottom right, #ffffff, #f8f9fa);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  padding: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-box.grid-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.about-text {
  flex: 1 1 55%;
}

.about-section {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.about-icon i {
  font-size: 2rem;
  color: var(--color-primary);
  min-width: 2.5rem;
}

.about-content h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.accent-line {
  width: 3px;
  height: 30px;
  background-color: var(--color-primary);
  border-radius: 3px;
}

.about-content p {
  color: var(--color-dark-blue);
  line-height: 1.6;
  font-size: 1rem;
}

/* ===================== Cardiovascular Risk Calculator Strip ===================== */
.risk-strip {
  background-color: #c22a2b;
  color: white;
  padding: 1.2rem 1.5rem;
  font-family: 'Roboto', sans-serif;
}

.risk-strip-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
}

.risk-text p {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0;
}

.risk-text small {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0rem;
}

.risk-button {
  padding: 0.6rem 1.3rem;
  border: 2px solid white;
  color: white;
  font-weight: 600;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.risk-button:hover {
  background-color: white;
  color: #c22a2b;
}

/* ===================== Services Section ===================== */
.services {
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
  padding: 5rem 1.5rem 10rem;
  margin-bottom: -110px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 0;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Before and After Card Overlays*/
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -2;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

/* Text Changes on Hover */
.service-card:hover::before,
.service-card:hover::after {
  opacity: 1;
}

.service-card:hover h3,
.service-card:hover ul,
.service-card:hover li {
  color: var(--color-white);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.service-card h3,
.service-card ul,
.service-card i {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

/* Bullet Lists Inside Cards */
.service-card ul {
  list-style: disc;
  padding-left: 1.2rem;
  text-align: left;
  margin-top: 1rem;
}

.service-card i {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.service-card:hover i {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.service-card h3 {
  font-size: 1.3rem;
  color: var(--color-dark-blue);
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--color-dark-blue);
  font-size: 1rem;
  line-height: 1.5;
}

.service-card li {
  font-size: 0.95rem;
  color: var(--color-dark-blue);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* Service Background Images */
.service-card.cardiology::before {
  background-image: url('assets/services-cardiology.png');
}

.service-card.diagnostics::before {
  background-image: url('assets/services-diagnostics.png');
}

.service-card.lifestyle::before {
  background-image: url('assets/services-lifestyle.png');
}

.service-card.innovation::before {
  background-image: url('assets/services-innovation.png');
}

/* ===================== Wave Dividers on Test Prep ===================== */
.wave-top {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -50px;
}

.wave-top svg {
  display: block;
  width: 100%;
  height: 100px;
  transform: rotate(180deg);
}

.wave-bottom {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  line-height: 0;
  z-index: 2;
  margin-top: -25px;
}

.wave-bottom svg {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 200px;
  transform: rotate(180deg);
}

/* ===================== Test Preparation Section ===================== */
.test-prep-section {
  background-color: #fff9f9;
  padding: 2rem 1.5rem 2rem;
}

.test-prep-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px 20px;
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.test-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.test-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.test-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #c22a2b;
  flex-grow: 1;
  min-width: 150px;
}

.test-btn {
  background-color: #c22a2b;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.test-btn:hover {
  background-color: #a51e22;
}

.coming-soon-card {
  background: linear-gradient(to bottom right, #ffffff, #f8f9fa);
  border: 1px solid #ddd;
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  max-width: 600px;
  margin: 2rem auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  opacity: 0.7;
  pointer-events: none; /* disables interaction */
}

.coming-soon-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #3c5060;
}

.coming-soon-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

.coming-soon-card i {
  font-size: 1.8rem;
  color: #c22a2b;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 8px rgba(194, 42, 43, 0.3);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.9; }
}
.coming-soon-card i {
  animation: pulse 3s infinite;
}


/* ===================== DELETE WHEN TEST PREP SECTION IS READY ===================== */
.hidden-test-grid {
  display: none;
}

.hidden-subtitle {
  display: none;
}


/* ===================== Our Team Section ===================== */
.team {
  background: url('assets/team-background.png') center/cover no-repeat;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  z-index: 1;
  margin-top: -160px;
  padding-top: 140px;
  padding-bottom: 5rem;
}

.team::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.271);
  z-index: -1;
}

.team .section-title {
  margin-bottom: 1.5rem;
}

.team-role-heading {
  display: inline-block;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--color-deep-blue);
  font-weight: 600;
  border-bottom: 2px solid var(--color-primary);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.team-card {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 1rem 0.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.team-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.team-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 0.25rem;
}

.team-card p {
  font-size: 0.85rem;
  color: var(--color-dark-blue);
  line-height: 1.4;
}

/* ===================== My Heart Fitness Banner ===================== */
.mhf-banner {
  background-color: #c22a2b;
  color: white;
  padding: 1.2rem 1.5rem;
  font-family: 'Roboto', sans-serif;
}

.mhf-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.mhf-logo-text {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 auto;
}

.mhf-logo {
  height: 75px;
  flex-shrink: 0;
}

.mhf-text p {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0;
}

.mhf-text small {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.25rem;
  line-height: 1.4;
  max-width: 700px;
}

.mhf-button {
  background: transparent;
  color: white;
  padding: 0.6rem 1.3rem;
  border: 2px solid white;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.mhf-button:hover {
  background-color: white;
  color: #c22a2b;
}

/* ===================== Value-Based Care Section ===================== */
.value-based {
  background-color: #f8f9fa;
  padding: 5rem 1.5rem;
}

.value-based .container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title.value {
  text-align: center;
  font-size: 2.5rem;
  color: var(--color-deep-blue);
  margin-bottom: 3rem;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
}

.value-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 3rem;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

.value-grid::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background-color: #ddd;
  transform: translateX(-50%);
  opacity: 0.3;
}

.value-left,
.value-right {
  flex: 1 1 48%;
  max-width: 48%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* What Makes Us Different Part */
.value-intro {
  font-size: 1rem;
  color: var(--color-dark-blue);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  max-width: 480px;
}

.value-subheading {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0;
}

.value-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  width: 100%;
}

.value-feature i {
  font-size: 1.4rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.value-feature p {
  margin: 0;
  font-size: 1rem;
  color: var(--color-dark-blue);
  line-height: 1.5;
}

/* Testimonials */
.testimonial-carousel {
  position: relative;
  background: #ffffff;
  border-left: 5px solid var(--color-primary);
  border-radius: 12px;
  padding: 2rem 2rem 2rem 3rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  width: 100%;
  min-height: 160px;
  max-height: 480px;
  margin-top: 1.5rem;
  overflow-y: auto;
  scrollbar-width: thin;
  font-style: italic;
}

.testimonial-carousel::before {
  content: "\201C";
  font-size: 4rem;
  color: #e0e0e0;
  position: absolute;
  top: 10px;
  left: 20px;
  z-index: 0;
  font-family: Georgia, serif;
}

.testimonial-slide {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.6s ease-in-out;
  z-index: 0;
  padding: 0 2rem 1.5rem 1rem;
}

.testimonial-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 1;
}

.testimonial-slide span {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #777;
  font-style: normal;
  font-weight: 500;
}

.testimonial-dots {
  text-align: center;
  margin-top: 1.5rem;
  padding-bottom: 0.5rem;
}

.testimonial-dots .dot {
  display: inline-block;
  height: 8px;
  width: 8px;
  margin: 0 4px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.testimonial-dots .dot.active {
  background-color: var(--color-primary);
}

/* KPI Layout */
.circle-kpis {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1rem;
  width: 100%;
}

.circle-kpi {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 120px;
  gap: 1.5rem;
  width: 100%;
  text-align: left;
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.kpi-chart {
  flex-shrink: 0;
  width: 100px;
}

.circular-chart {
  height: 100px;
  width: 100px;
  display: block;
  margin: 0 auto;
}

.circular-chart .circle-bg {
  fill: none;
  stroke: #eee;
  stroke-width: 3.8;
}

.circular-chart .circle {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 3.8;
  stroke-linecap: round;
  stroke-dasharray: 0, 100;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dasharray 1.5s ease-out;
}

.circular-chart .percentage {
  fill: var(--color-dark-blue);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: bold;
  text-anchor: middle;
  dominant-baseline: middle;
}

.kpi-text p {
  margin: 0;
  font-size: 1rem;
  color: var(--color-dark-blue);
  line-height: 1.5;
}

.info-icon {
  margin-left: 0.4rem;
  color: var(--color-deep-blue);
  font-size: 0.9rem;
}

.info-icon:hover {
  color: var(--color-primary-dark);
}

/* ===================== Innovation Lab ===================== */
.innovation-lab {
  background: #ffffff;
  padding: 5rem 1.5rem;
}

.innovation-lab .container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title.innovation {
  text-align: center;
  font-size: 2.5rem;
  color: var(--color-deep-blue);
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  margin-bottom: 3rem;
}

.innovation-header {
  margin-bottom: 3rem;
}

.innovation-subtitle {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  text-align: left;
}

.innovation-description {
  font-size: 1.1rem;
  color: var(--color-dark-blue);
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

.innovation-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.feature-box {
  background: #ffffff;
  border-radius: 12px;
  flex: 1 1 calc(25% - 1rem);
  text-align: center;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box i {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.feature-box p {
  font-size: 1rem;
  color: var(--color-dark-blue);
  margin: 0;
  line-height: 1.4;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.innovation-cta {
  text-align: center;
  margin-top: 2rem;
}

#tsparticles-innovation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.innovation-lab {
  position: relative;
  z-index: 1;
}

.innovation-lab .container,
.section-title {
  position: relative;
  z-index: 2;
}

/* ===================== Footer Section ===================== */
.footer-section {
  background-color: #c22a2b;
  color: #ffffff;
  padding: 4rem 2rem 2rem;
  font-family: 'Roboto', sans-serif;
  margin-top: -5px;
}

.footer-container {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

.wave-footer {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -50px;
  z-index: 2;
}

.wave-footer svg {
  display: block;
  width: 100%;
  height: 100px;
  transform: rotate(180deg);
}

.footer-column {
  flex: 1 1 300px;
  min-width: 260px;
}

.footer-brand h2 {
  font-family: 'Roboto Condensed', sans-serif;
  color: white;
  font-size: 4rem;
  font-weight: 700;
  line-height: 2rem;
  margin-bottom: 0.2rem;
}

.footer-brand h2 span {
  display: block;
  margin-bottom: 0;
}

.footer-subtext {
  font-size: 1.1rem;
  font-style: italic;
  color: #ffffff;
  margin-top: 1rem;
  margin-bottom: 1rem;
  line-height: 3rem;
}

.footer-button {
  background-color: #ffffff;
  color: #c22a2b;
  padding: 0.9rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
}

.footer-button:hover {
  background-color: #f3f3f3;
}

.secondary-button {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  padding: 0.75rem 1.5rem;
  margin-top: 1rem;
  border-radius: 8px;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
  text-align: center;
}

.secondary-button:hover {
  background-color: #ffffff;
  color: #c22a2b;
}

.footer-column h3 {
  font-size: 1.4rem;
  color: white;
  margin-bottom: 1rem;
  border-bottom: 2px solid #fff;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.footer-column p {
  font-size: 0.95rem;
  margin: 0.3rem 0;
}

.hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.hours-list li.today {
  background-color: #a379794a;
  border-radius: 6px;
  font-weight: 600;
  padding: 5px;
}

.closed {
  color: #ffffff;
  font-weight: 500;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: #ffffff;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===================== Responsive Styles ===================== */
/* Small Screens (Mobile) */
@media (max-width: 965px) {
  .hamburger {
    display: block;
    z-index: 1001;
    cursor: pointer;
  }

  .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 5px 0;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background-color: rgba(255, 255, 255, 0.96);
    position: absolute;
    top: 80px;
    right: 10px;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 999;
    animation: fadeDown 0.3s ease;
  }

  .nav-links.mobile-visible {
    display: flex;
  }

  @keyframes fadeDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .navbar.shrink .logo-img {
    height: 60px !important;
    transform: none !important;
  }

  .floating-logo-wrapper,
  .floating-logo-box {
    position: static;
    background: none;
    padding: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .logo-img {
    height: 80px;
    margin: 0;
    transition: none !important;
  }

  .navbar.shrink .logo-img {
  height: 80px !important; /* No shrink on scroll */
  transform: none !important;
}

  .hero h1 {
    margin-top: 5rem;
    font-size: 3rem;
  }

  .subheading {
    font-size: 2rem;
    margin-bottom: 1.2rem;
  }

  .hero-headline {
    font-size: 1.4rem;
    margin: 1.2rem 0 0.8rem;
  }

  .hero-subheadline {
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }

  .hero-content {
    padding: 3rem 1rem 4rem;
  }

  .about-grid {
    flex-direction: column;
    text-align: center;
  }

  .about-text, .about-image {
    flex: 1 1 100%;
  }

  .team-grid {
    display: block;
    margin-top: 1rem;
  }

  .team-card {
    margin-bottom: 1rem;
    padding: 0.9rem 1.2rem;
    border-left: 4px solid var(--color-primary);
    background: #ffffff;
    text-align: left;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }

  .team-card h4 {
    margin-bottom: 0.2rem;
    font-size: 1.05rem;
  }

  .team-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-dark-blue);
  }

  .team-role-heading {
    margin-top: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-deep-blue);
    border-bottom: 2px solid var(--color-primary);
    margin-bottom: 0.5rem;
  }

  .value-grid {
    flex-direction: column;
  }

  .value-left,
  .value-right {
    max-width: 100%;
    width: 100%;
  }

  .value-grid::before {
    display: none;
  }

  .value-left {
    margin-bottom: 2rem;
  }

  .value-feature {
    flex-direction: row;
  }

  .feature-box {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .innovation-cards {
    grid-template-columns: 1fr !important;
  }

  .risk-strip-content,
  .mhf-banner-content {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .mhf-logo-text {
    flex-direction: column;
    align-items: flex-start;
  }

  .mhf-logo {
    display: none;
  }

  .mhf-button,
  .risk-button {
    align-self: flex-start;
    margin-top: 0.8rem;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
}

/* Medium Screens (Tablets) */
@media (max-width: 1000px) {
  .floating-logo-wrapper,
  .floating-logo-box {
    position: static;
    background: none;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transform: none !important;
  }

  .logo-img {
    height: 80px !important;
    margin: 0;
    transition: none !important;
  }

  .navbar.shrink .logo-img {
    height: 80px !important;
    transform: none !important;
  }


  .hero-content {
    padding: 3rem 2rem 4rem;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .subheading {
    font-size: 2.5rem;
  }

  .hero-headline {
    font-size: 1.5rem;
  }

  .hero-subheadline {
    font-size: 1.05rem;
    padding: 0 2rem;
  }

  .cta-button {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .about-box.grid-layout {
    flex-direction: column;
    padding: 2rem;
  }

  .test-item {
    flex-direction: column;
    align-items: flex-start;
    background-color: #f9f9f9;
  }

  .test-btn {
    width: 100%;
    text-align: center;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .team-card {
    padding: 1rem;
  }

  .team-card h4 {
    font-size: 1.1rem;
  }

  .team-card p {
    font-size: 0.9rem;
  }

  .value-grid {
    flex-direction: column;
    gap: 2rem;
  }

  .value-left,
  .value-right {
    max-width: 100%;
    width: 100%;
  }

  .value-grid::before {
    display: none;
  }

  .circle-kpis {
    gap: 1.5rem;
  }

  .circle-kpi {
    flex-direction: row;
    padding: 1rem;
  }

  .kpi-chart {
    width: 90px;
  }

  .innovation-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .feature-box {
    padding: 2rem 1.5rem;
  }

  .footer-column {
    flex: 1 1 33%;
    margin-bottom: 2rem;
  }

  .footer-column h3 {
    font-size: 1.3rem;
  }

  .footer-button {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }
}

/* Mid Size Screen (Small Desktops) */
@media (min-width: 1001px) and (max-width: 1290px) {
  .floating-logo-wrapper {
    position: static;
    transform: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .floating-logo-box {
    background: none;
    padding: 0;
    box-shadow: none;
    transform: none !important;
  }

  .logo-img {
    height: 80px !important;
    margin-top: 0;
    transition: none !important;
    transform: none !important;
  }

  .navbar.shrink .logo-img {
    height: 80px !important; /* Prevent size change */
    transform: none !important;
  }

  .navbar.shrink .floating-logo-box {
    transform: none !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

}

@media (max-width: 965px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }

  .footer-column {
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .footer-brand h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
  }

  .footer-subtext {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-top: 0rem;
  }

  .footer-button,
  .secondary-button {
    margin: 0.5rem auto;
    display: inline-block;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    text-align: center;
  }

  .hours-list li {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    text-align: center;
  }

  .hours-list .day {
    font-weight: bold;
  }

  .hours-list .hours {
    white-space: nowrap;
  }


  .footer-brand h2 {
  font-size: 4rem;
  line-height: 1.2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: center;
}

.footer-brand h2 span {
  display: inline;
  margin: 0;
}

}
