/* ==========================================================================
   SYNADENTIX GLOBAL VARIABLES & TYPOGRAPHY
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700;900&display=swap');

:root {
  /* Main Theme Colors */
  --primary-dental: #004a8c;      /* Deep Trustworthy Medical Blue */
  --light-blue: #f0f8ff;          /* Clean Dental White/Blue */
  --action-color: #ffb703;        /* High-Converting Golden Yellow */
  --action-hover: #fb8500;        /* Deeper Orange/Yellow for Hover */
  --info-color: #028090;          /* Teal for Accents and Icons */

  /* Text Colors */
  --text-dark: #2b2d42;
  --text-muted: #5c677d;
  --bg-white: #ffffff;

  /* Pricing Section Specific Colors (Image Matched) */
  --card-border-color: #dfdfdf;
  --teal-light: #2daaa0;          /* Top header of Basic/Popular */
  --teal-dark: #19726d;           /* Best value header & Buy Buttons */
  --text-dark-green: #19726d;     /* Price & Titles */
  --best-value-bg: #eaf6f7;       /* Light cyan background for center card */
  --badge-grey: #c6c6c6;
  --badge-green: #71c618;
  --badge-yellow: #ffb815;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Base Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   UTILITY CLASSES & COLORS
   ========================================================================== */
.text-primary-dental { color: var(--primary-dental) !important; }
.bg-primary-dental { background-color: var(--primary-dental) !important; }
.bg-light-blue { background-color: var(--light-blue) !important; }
.text-info { color: var(--info-color) !important; }
.border-info { border-color: rgba(2, 128, 144, 0.2) !important; }
.text-dark-green { color: var(--text-dark-green) !important; }

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
  transition: all 0.3s ease-in-out;
  border-bottom: 2px solid #e9ecef;
}

.nav-links a {
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--info-color) !important;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--info-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ==========================================================================
   CUSTOM BUTTONS & ANIMATIONS
   ========================================================================== */
.btn-action {
  background-color: var(--action-color);
  border-color: var(--action-color);
  color: #000;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-action:hover {
  background-color: var(--action-hover);
  border-color: var(--action-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(251, 133, 0, 0.4) !important;
}

.btn-buy-now {
  background-color: var(--teal-dark);
  color: #ffffff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 10px 15px;
  width: 85%;
  margin: 15px auto 0;
  display: block;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(25, 114, 109, 0.3);
}

.btn-buy-now:hover {
  background-color: #125753;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(25, 114, 109, 0.4);
}

/* Pulse Animation for CTA Buttons */
.pulse-btn, .pulse-effect {
  animation: pulseEffect 2s infinite;
}

@keyframes pulseEffect {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 183, 3, 0.7); }
  50% { transform: scale(1.03); box-shadow: 0 0 0 15px rgba(255, 183, 3, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 183, 3, 0); }
}

/* ==========================================================================
   PRICING CARDS (CUSTOM IMAGE MATCHED)
   ========================================================================== */
.custom-pricing-row {
  align-items: stretch;
}

.pricing-card {
  background-color: #ffffff;
  border: 1px solid var(--card-border-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Center Card Pop-out Effect */
.best-value-card {
  background-color: var(--best-value-bg);
  border-color: #d1eced;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transform: scale(1.06); 
  border-radius: 12px;
  z-index: 10;
}

/* Card Headers */
.header-teal-light {
  background-color: var(--teal-light);
  color: #ffffff;
  border-top-left-radius: 11px;
  border-top-right-radius: 11px;
}

.header-teal-dark {
  background-color: var(--teal-dark);
  color: #ffffff;
  border-top-left-radius: 11px;
  border-top-right-radius: 11px;
}

/* Custom Pills/Badges for Pricing Options */
.badge-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 15px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13px;
  width: 85%;
  letter-spacing: 0.5px;
}

.badge-grey { background-color: var(--badge-grey); }
.badge-green { background-color: var(--badge-green); }
.badge-yellow { background-color: var(--badge-yellow); }

/* Responsive adjustments for Pricing */
@media (max-width: 991px) {
  .best-value-card {
    transform: scale(1) !important; /* Removes scale on mobile to prevent overlap */
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.accordion-button:not(.collapsed) {
  background-color: var(--light-blue);
  color: var(--primary-dental) !important;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0,0,0,0.125);
}

/* ==========================================================================
   FIXED RESPONSIVE INGREDIENTS DESIGN
   ========================================================================== */
.ingredient-box {
    border: 1px solid rgba(2, 128, 144, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ingredient-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

/* Flex Container handling child blocks perfectly */
.ingredient-flex-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* Hardcoded image control to prevent breaking layout */
.ingredient-img-wrapper {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.ingredient-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid #ffffff;
    transition: transform 0.3s ease;
}

.ingredient-box:hover .ingredient-img-wrapper img {
    transform: scale(1.05);
}

.ingredient-content {
    flex-grow: 1;
}

/* Responsive adjustment for small screen mobile phones */
@media (max-width: 576px) {
    .ingredient-flex-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    .ingredient-img-wrapper {
        width: 120px;
        height: 120px;
    }
}