/* ==========================================================================
   Low Dollar Labs — brand theme layer
   Applies the teal/green design system (soft aqua surfaces, brand gradient,
   pill buttons, rounded tile cards) on top of the Blueberry template CSS.
   Loaded last from globals.css so it wins the cascade.
   ========================================================================== */

:root {
  --radius: 0.625rem;
  --background: #f4fefe;
  --foreground: #001f29;
  --card: #ffffff;
  --card-foreground: #001f29;
  --primary: #00768c;
  --primary-foreground: #f4fefe;
  --secondary: #0fb89a;
  --accent: #13c097;
  --muted: #e3f6f7;
  --muted-foreground: #496973;
  --destructive: #e40014;
  --border: #d6e9ea;
  --input: #d6e9ea;
  --ring: #008288;
  --brand-blue: #00768c;
  --brand-blue-deep: #00445d;
  --brand-green: #13c097;
  --brand-green-deep: #00866e;
  --gradient-brand: linear-gradient(135deg, #00768c, #13c097);
  --gradient-soft: linear-gradient(180deg, #dffcfb, #f4fefe);
  --shadow-tile: 0 10px 30px -12px rgba(0, 68, 93, 0.28);
  --shadow-tile-hover: 0 20px 45px -15px rgba(0, 68, 93, 0.4);
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

/* ---------- base ---------- */

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--foreground);
  letter-spacing: -0.02em;
}

p {
  color: var(--muted-foreground);
}

::selection {
  background: var(--brand-green);
  color: var(--brand-blue-deep);
}

/* brand gradient text helper (used for accent words in headings) */
.ldl-gradient-text,
.section-title .bb-title span,
.bb-title span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- header ---------- */

.bb-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 254, 254, 0.82) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(214, 233, 234, 0.6);
}

.bottom-header {
  padding: 14px 0 6px 0;
}

.bb-main-menu-desk {
  background: transparent;
  border-top: 0;
}

.bb-main-menu-desk .bb-inner-menu-desk .bb-main-menu ul.navbar-nav li a,
.bb-main-menu .nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-foreground) !important;
  transition: color 0.2s ease;
}

.bb-main-menu-desk .bb-inner-menu-desk .bb-main-menu ul.navbar-nav li:hover a.nav-link,
.bb-main-menu .nav-link:hover {
  color: var(--foreground) !important;
}

.bb-dropdown-menu {
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-tile);
  overflow: hidden;
}

.bb-dropdown-menu .dropdown-item {
  color: var(--muted-foreground);
}

.bb-dropdown-menu .dropdown-item:hover {
  background: var(--muted);
  color: var(--foreground);
}

/* ---------- buttons ---------- */

.bb-btn-2,
.btn-primary,
.choose-location,
.choose-locationtest,
.bb-register-button .btn,
button.testselect {
  background: var(--gradient-brand) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 9999px !important;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: 0 1px 2px rgba(0, 31, 41, 0.08);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.bb-btn-2:hover,
.btn-primary:hover,
.choose-location:hover,
.choose-locationtest:hover,
.bb-register-button .btn:hover {
  opacity: 0.88;
  color: #fff !important;
  background: var(--gradient-brand) !important;
}

.bb-btn-1 {
  color: var(--brand-blue);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-weight: 600;
  background: var(--card);
}

.bb-btn-1:hover {
  background: var(--muted);
  border-color: var(--brand-green-deep);
  color: var(--brand-blue-deep) !important;
}

.bb-btn-delte-2 {
  border-radius: 9999px;
  font-weight: 600;
}

/* small ghost buttons ("View Price Details", "View Panel") */
.btn-viewmore,
.btn-viewpanel {
  background: var(--card) !important;
  color: var(--brand-blue) !important;
  border: 1px solid var(--border) !important;
  border-radius: 9999px !important;
  font-weight: 600;
  box-shadow: none;
}

.btn-viewmore:hover,
.btn-viewpanel:hover {
  background: var(--muted) !important;
  color: var(--brand-blue-deep) !important;
  border-color: var(--brand-green-deep) !important;
}

/* keep the icon-button inside search fields transparent */
.header-search .bb-btn-group-form button,
.header-search .bb-btn-group-form button:hover {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 9999px 9999px 0 !important;
  opacity: 1;
}

.header-search .bb-btn-group-form button i {
  color: var(--brand-blue);
}

/* ---------- inputs ---------- */

.form-control,
.inputRegister,
.header-search .bb-btn-group-form input {
  background-color: var(--card);
  border: 1px solid var(--input);
  border-radius: 14px;
  color: var(--foreground);
}

.header-search .bb-btn-group-form input {
  border-radius: 9999px;
  padding-left: 20px;
}

.form-control:focus,
.inputRegister:focus,
.header-search .bb-btn-group-form input:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(0, 130, 136, 0.18);
  outline: none;
}

/* ---------- section headings ---------- */

.section-title .section-detail .bb-title,
.bb-title {
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

.section-detail h5 {
  color: var(--muted-foreground);
  font-weight: 400;
}

/* ---------- cards & tiles ---------- */

.bb-category-box,
.bb-common-box {
  background: var(--card) !important;
  border: 1px solid rgba(214, 233, 234, 0.8);
  border-radius: 18px;
  box-shadow: var(--shadow-tile);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bb-category-box:hover,
.bb-common-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-tile-hover);
}

.bb-category-box .category-image img {
  transition: transform 0.5s ease;
}

.bb-category-box:hover .category-image img {
  transform: scale(1.06);
}

.bb-category-box .category-sub-contact h6,
.testcategoryname {
  color: var(--foreground);
  font-weight: 600;
}

.bb-services-box,
.bb-vendor-box,
.labContainer,
.bb-register-wrap .bb-register-width-50,
.user-agreement {
  background: var(--card);
  border: 1px solid rgba(214, 233, 234, 0.8);
  border-radius: 18px;
}

.bb-services-box {
  box-shadow: var(--shadow-tile);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 26px 20px;
}

.bb-services-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-tile-hover);
}

/* feature icon in a soft gradient square, like the reference tiles */
.bb-services-box .services-img {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 14px auto;
  border-radius: 14px;
  background: var(--gradient-brand);
  box-shadow: 0 1px 2px rgba(0, 31, 41, 0.12);
}

.bb-services-box .services-img img {
  width: 32px;
  height: 32px;
  -webkit-filter: brightness(0) invert(1);
  filter: brightness(0) invert(1);
}

.bb-services-box .services-contact h4 {
  color: var(--foreground);
  font-weight: 600;
}

.bb-vendor-box {
  box-shadow: var(--shadow-tile);
}

/* search suggestion panels */
.paper-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-tile-hover);
}

.suggestion {
  border-radius: 14px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.suggestion:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-tile);
}

.testchoosebtn {
  border-radius: 12px;
  color: var(--foreground);
}

.testchoosebtn:hover {
  background: var(--muted);
  color: var(--brand-blue-deep);
}

/* modal-ish detail boxes */
.bb-priceviewr-box,
.bb-labdetails-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-tile-hover);
}

/* ---------- footer ---------- */

.bb-footer {
  background: rgba(255, 255, 255, 0.6) !important;
  border-top: 1px solid rgba(214, 233, 234, 0.6);
}

.bb-footer .bb-footer-heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--foreground);
}

.bb-footer .bb-footer-link a,
.bb-footer .bb-footer-paragarph,
.bb-footer .bb-footer-detail {
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.bb-footer .bb-footer-link a:hover,
.bb-footer .bb-footer-link:hover .bb-footer-paragarph {
  color: var(--foreground);
}

/* social icons as soft rounded squares */
.bb-footer-social .bb-footer-link a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--muted);
  color: var(--muted-foreground);
}

.bb-footer-social .bb-footer-link a:hover {
  background: var(--gradient-brand);
  color: #fff;
}

.bb-footer-social .bb-footer-link a i {
  font-size: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(214, 233, 234, 0.6);
}

.footer-bottom .bb-copy {
  color: var(--muted-foreground);
}

.footer-bottom .site-name {
  color: var(--foreground);
  font-weight: 600;
}

/* ==========================================================================
   Hero (homepage) — matches the reference landing hero
   ========================================================================== */

.ldl-hero {
  position: relative;
  overflow: hidden;
}

.ldl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--gradient-soft);
}

.ldl-hero::after {
  content: "";
  position: absolute;
  top: -8rem;
  right: -8rem;
  z-index: -1;
  height: 24rem;
  width: 24rem;
  border-radius: 9999px;
  background: var(--gradient-brand);
  filter: blur(64px);
  opacity: 0.35;
}

.ldl-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 56px 16px;
}

@media (min-width: 768px) {
  .ldl-hero-grid {
    grid-template-columns: 1fr 1fr;
    padding: 80px 24px;
  }
}

.ldl-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(214, 233, 234, 0.9);
  background: var(--card);
  border-radius: 9999px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-foreground);
}

.ldl-hero-badge svg {
  width: 14px;
  height: 14px;
  color: var(--brand-green-deep);
  flex: none;
}

.ldl-hero-title {
  margin-top: 18px;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--foreground);
}

.ldl-hero-sub {
  margin-top: 20px;
  max-width: 36rem;
  font-size: 1.075rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.ldl-hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ldl-btn-gradient {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-brand);
  color: #fff !important;
  border: 0;
  border-radius: 9999px;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 31, 41, 0.1);
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.ldl-btn-gradient:hover {
  opacity: 0.88;
  color: #fff !important;
}

.ldl-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  color: var(--brand-blue-deep) !important;
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease;
  cursor: pointer;
}

.ldl-btn-ghost:hover {
  background: var(--muted);
}

.ldl-hero-trust {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 24px;
  row-gap: 8px;
  font-size: 14px;
  color: var(--muted-foreground);
}

.ldl-hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ldl-hero-trust svg {
  width: 16px;
  height: 16px;
  color: var(--brand-green-deep);
  flex: none;
}

.ldl-hero-media {
  position: relative;
}

.ldl-hero-media::before {
  content: "";
  position: absolute;
  inset: -24px;
  z-index: -1;
  border-radius: 2.5rem;
  background: var(--gradient-brand);
  opacity: 0.3;
  filter: blur(40px);
}

.ldl-hero-media > img {
  width: 100%;
  border-radius: 1.5rem;
  object-fit: cover;
  box-shadow: 0 25px 50px -12px rgba(0, 31, 41, 0.25);
  border: 1px solid rgba(214, 233, 234, 0.6);
}

.ldl-hero-float {
  position: absolute;
  bottom: -20px;
  left: -20px;
  display: none;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(214, 233, 234, 0.7);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow-tile);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

@media (min-width: 640px) {
  .ldl-hero-float {
    display: flex;
  }
}

.ldl-hero-float-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: var(--gradient-brand);
  color: #fff;
  flex: none;
}

.ldl-hero-float-icon svg {
  width: 20px;
  height: 20px;
}

.ldl-hero-float-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
}

.ldl-hero-float-sub {
  font-size: 12px;
  color: var(--muted-foreground);
}

/* numbered steps row (hero) */
.ldl-steps {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ldl-step {
  display: block;
  background: var(--card);
  border: 1px solid rgba(214, 233, 234, 0.8);
  border-radius: 16px;
  padding: 14px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 1px 2px rgba(0, 31, 41, 0.05);
}

.ldl-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-tile);
}

.ldl-step-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-green-deep);
}

.ldl-step-label {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.3;
}

/* gradient panel (used for CTA / locate-a-lab band styling hooks) */
.ldl-gradient-panel {
  background: var(--gradient-brand);
  border-radius: 1.5rem;
  color: var(--primary-foreground);
  box-shadow: var(--shadow-tile-hover);
}

.ldl-gradient-panel h2,
.ldl-gradient-panel h3,
.ldl-gradient-panel p {
  color: var(--primary-foreground);
}

/* ---------- find-a-lab gradient panel ---------- */

.ldl-lab-panel {
  padding: 40px 24px 44px 24px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .ldl-lab-panel {
    padding: 48px 40px 52px 40px;
  }
}

.ldl-lab-panel .section-title .bb-title,
.ldl-lab-panel .bb-title span {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: #fff;
  color: #fff;
}

.ldl-lab-panel .section-detail h5 {
  color: rgba(244, 254, 254, 0.9);
}

.ldl-lab-panel .header-search .bb-btn-group-form input {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.4);
}

.ldl-lab-panel .paper-box {
  text-align: left;
}

/* ---------- search suggestion tint (find tests) ---------- */

.suggestion,
.panelelement,
.panelpriceelement {
  background: var(--muted) !important;
}

.suggestion p,
.panelelement p {
  color: var(--foreground);
}

/* "Also included…" search rows: the tinted text box and the View Panel box are
   two Bootstrap cols; keep them the same height and vertically centred so each
   row reads as one smooth bar (was a clunky height mismatch, worst on hover). */
.paper-box .panelelement,
.paper-box .panelpriceelement {
  align-self: stretch !important;
  display: flex !important;
  align-items: center !important;
  min-height: 42px;
}
.paper-box .panelelement {
  padding-top: 6px;
  padding-bottom: 6px;
}
.paper-box .panelelement p {
  margin-bottom: 0 !important;
}
.paper-box .panelpriceelement {
  justify-content: center !important;
}

/* footer social — beat the template's specificity */
.bb-footer .footer-top .bb-footer-social .bb-footer-widget .bb-footer-links .bb-footer-link a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--muted);
  color: var(--muted-foreground);
  border: 0;
}

.bb-footer .footer-top .bb-footer-social .bb-footer-widget .bb-footer-links .bb-footer-link a:hover {
  background: var(--gradient-brand);
}

.bb-footer .footer-top .bb-footer-social .bb-footer-widget .bb-footer-links .bb-footer-link a i {
  color: var(--muted-foreground);
  font-size: 16px;
}

.bb-footer .footer-top .bb-footer-social .bb-footer-widget .bb-footer-links .bb-footer-link a:hover i {
  color: #fff;
}

/* footer headings — uppercase micro-labels like the reference */
.bb-footer .footer-top .bb-footer-widget .bb-footer-heading,
.bb-footer .bb-footer-heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--foreground);
  border-bottom: 0;
}

/* ---------- test category photo cards (reference tile design) ---------- */

.ldl-test-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(214, 233, 234, 0.6);
  background: var(--card);
  box-shadow: var(--shadow-tile);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-align: left;
}

.ldl-test-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-tile-hover);
}

.ldl-test-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gradient-soft);
}

.ldl-test-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ldl-test-card:hover .ldl-test-card-media img {
  transform: scale(1.05);
}

.ldl-test-card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-blue-deep);
  box-shadow: 0 1px 2px rgba(0, 31, 41, 0.1);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.ldl-test-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
}

.ldl-test-card-body h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--foreground);
  margin: 0;
}

.ldl-test-card-body .ldl-test-card-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted-foreground);
  margin: 0;
}

.ldl-test-card-footer {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.ldl-test-card-price-label {
  font-size: 12px;
  color: var(--muted-foreground);
  line-height: 1.2;
}

.ldl-test-card-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-blue-deep);
  line-height: 1.15;
}

.ldl-test-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 9999px;
  background: var(--gradient-brand);
  color: #fff;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 31, 41, 0.1);
  transition: opacity 0.2s ease;
}

.ldl-test-card:hover .ldl-test-card-cta {
  opacity: 0.9;
}

/* hero search form (reference hero) */
.ldl-hero-search {
  margin-top: 28px;
  display: flex;
  width: 100%;
  max-width: 36rem;
  flex-direction: column;
  gap: 8px;
  border-radius: 1rem;
  border: 1px solid rgba(214, 233, 234, 0.9);
  background: var(--card);
  padding: 8px;
  box-shadow: 0 1px 2px rgba(0, 31, 41, 0.06);
}

@media (min-width: 640px) {
  .ldl-hero-search {
    flex-direction: row;
    align-items: center;
  }
}

.ldl-hero-search-field {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.ldl-hero-search-field svg {
  width: 20px;
  height: 20px;
  color: var(--muted-foreground);
  flex: none;
}

.ldl-hero-search-field input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  padding: 12px 0;
  font-size: 15px;
  color: var(--foreground);
}

.ldl-hero-search-field input::placeholder {
  color: var(--muted-foreground);
}

.ldl-hero-search .ldl-btn-gradient {
  border-radius: 0.75rem;
  padding: 12px 20px;
}

/* hero image matches the reference 4:3 crop */
.ldl-hero-media > img {
  aspect-ratio: 4 / 3;
  height: auto;
}

/* ---------- page background: one continuous gradient, top #eff9fd -> bottom #ece4d9 ---------- */

html {
  background: linear-gradient(180deg, #eff9fd 0%, #ece4d9 100%);
  min-height: 100%;
}

body {
  background: transparent;
}

/* let the page gradient show through section bands that paint their own fill */
.section-about,
.sectionTest-services,
.section-services,
.section-contact {
  background: transparent;
}

.ldl-hero::before {
  background: none;
}

/* header tint follows the gradient's top color */
.bb-header {
  background: rgba(239, 249, 253, 0.85) !important;
}

/* footer sits on the beige end of the gradient */
.bb-footer {
  background: transparent !important;
  border-top: 1px solid rgba(0, 68, 93, 0.08);
}
