:root {
  --ink: #102033;
  --muted: #5d6979;
  --line: #dce6ee;
  --paper: #ffffff;
  --mist: #eef7f7;
  --aqua: #007d84;
  --aqua-dark: #075b62;
  --mint: #38b6a2;
  --coral: #f06f4f;
  --gold: #d8a735;
  --navy: #17385f;
  --shadow: 0 18px 50px rgba(17, 47, 72, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  background: #f8fbfc;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.top-strip {
  color: #eaf6f6;
  background: var(--aqua-dark);
  font-size: 0.88rem;
}

.top-strip__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.top-strip a {
  color: #ffffff;
  font-weight: 700;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.navbar__inner {
  min-height: 78px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  order: 1;
}

.brand__mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--aqua);
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 10px 22px rgba(0, 125, 132, 0.22);
}

.brand__logo {
  width: clamp(180px, 20vw, 240px);
  height: auto;
  object-fit: contain;
}

@media (max-width: 640px) {
  .brand__logo {
    width: 150px;
  }
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.05rem;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  order: 2;
  margin-left: auto;
  color: #26374a;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links__nabl-logo {
  width: 112px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  order: 3;
}

.nav-links__cta,
.button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  font: inherit;
  font-weight: 800;
  white-space: nowrap;
}

.nav-links__cta,
.button--primary {
  color: #ffffff;
  background: var(--coral);
  box-shadow: 0 14px 30px rgba(240, 111, 79, 0.28);
}

.button--secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.14);
}

/* Ensure the packages toggle button is visible on light backgrounds */
#toggle-packages-btn {
  color: #ffffff !important;
  background: var(--aqua) !important;
  border: 1px solid var(--aqua) !important;
  box-shadow: 0 8px 18px rgba(0, 125, 132, 0.2);
}

#toggle-packages-btn:hover {
  background: var(--aqua-dark) !important;
}

/* Make the expanded packages area clearly visible */
.packages-extended {
  padding: 18px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(17, 47, 72, 0.04);
}

.button--light {
  color: var(--aqua-dark);
  background: #ffffff;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  min-height: 42px;
  padding: 0 14px;
  font-weight: 800;
}

.hero {
  min-height: 690px;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero__background,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__background {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  animation: heroSlideshow 20s infinite ease-in-out;

  background-image: 
    url("images/Entrance.jpeg"),
    url("images/View from outside.jpeg"),
    url("images/View inside the main machine area.jpeg"),
    url("images/View from inside 1.jpeg"),
    url("images/View from inside 2.jpeg");
}
@keyframes heroSlideshow {
  0%, 16% {
    background-image: url("images/Entrance.jpeg");
  }
  20%, 36% {
    background-image: url("images/View from outside.jpeg");
  }
  40%, 56% {
    background-image: url("images/View inside the main machine area.jpeg");
  }
  60%, 76% {
    background-image: url("images/View from inside 1.jpeg");
  }
  80%, 96% {
    background-image: url("images/View from inside 2.jpeg");
  }
  100% {
    background-image: url("images/Entrance.jpeg");
  }
}

.hero__overlay {
  background:
    linear-gradient(90deg, rgba(9, 36, 55, 0.92) 0%, rgba(9, 36, 55, 0.72) 42%, rgba(9, 36, 55, 0.26) 100%),
    linear-gradient(0deg, rgba(0, 125, 132, 0.2), rgba(0, 125, 132, 0.02));
}

.hero__content {
  position: relative;
  z-index: 1;
  color: #ffffff;
  padding: 96px 0 130px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: #d9ecf0;
  font-size: clamp(1.05rem, 2vw, 1.34rem);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero__stats {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 56px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(16px);
}

.hero__stats div {
  min-height: 96px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.hero__stats strong,
.hero__stats span {
  display: block;
}

.hero__stats strong {
  font-size: 1.36rem;
}

.hero__stats span {
  margin-top: 7px;
  color: #d4e8eb;
  font-size: 0.9rem;
}

.quick-actions {
  position: relative;
  z-index: 2;
  margin-top: -72px;
}

.quick-actions__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

.appointment-form,
.action-panel,
.service-card,
.package-card,
.department-list article,
.location-card,
.testimonial-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.appointment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
}

.appointment-form > div,
.appointment-form button {
  grid-column: 1 / -1;
}

.appointment-form h2,
.action-panel h2,
.section-heading h2,
.department-layout h2,
.about-band h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: 0;
}

label {
  display: grid;
  gap: 8px;
  color: #32455a;
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fbfdfe;
  font: inherit;
}

.action-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  color: #ffffff;
  background: var(--aqua);
}

.action-panel--home {
  background: var(--navy);
}

.action-panel p {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

.action-panel__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font-weight: 900;
}

.section {
  padding: 92px 0;
}

.section--services,
.section--locations {
  background: var(--mist);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading--split {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.section-heading p:not(.section-kicker),
.department-layout > div > p,
.about-band p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.service-grid,
.package-grid,
.location-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.service-card {
  overflow: hidden;
  box-shadow: none;
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card:nth-child(1) img,
.service-card:nth-child(3) img {
  object-position: center 36%;
}

.service-card:nth-child(2) img {
  object-position: center 48%;
}

.service-card h3,
.service-card p {
  margin-left: 18px;
  margin-right: 18px;
}

.service-card h3 {
  margin-top: 20px;
  margin-bottom: 8px;
}

.service-card p {
  margin-top: 0;
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.65;
}

.package-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.package-tabs button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.package-tabs .is-active {
  color: #ffffff;
  border-color: var(--aqua);
  background: var(--aqua);
}

.package-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.package-card {
  padding: 24px;
  box-shadow: none;
}

.package-card img {
  width: 100%;
  height: 180px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #ffffff;
}

.package-card:nth-child(2) img {
  object-fit: contain;
  padding: 14px;
}

.package-card:nth-child(3) img {
  object-position: center 22%;
}

.package-card > p {
  margin: 0 0 8px;
  color: var(--aqua);
  font-weight: 900;
}

.package-card h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.package-card strong {
  display: block;
  color: var(--coral);
  margin-bottom: 16px;
}

.package-card ul {
  margin: 0 0 22px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.package-card a {
  color: var(--aqua-dark);
  font-weight: 900;
}

.section--departments {
  color: #ffffff;
  background: var(--navy);
}

.department-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 44px;
  align-items: start;
}

.department-layout > div > p {
  color: #d6e5ef;
}

.department-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.department-list article {
  min-height: 156px;
  padding: 22px;
  color: var(--ink);
  box-shadow: none;
}

.department-list h3 {
  margin: 0 0 10px;
}

.department-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.about-band {
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 42px;
  align-items: center;
}

.about-band img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.about-band img {
  aspect-ratio: 4 / 3;
}

.location-map {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-list span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--aqua-dark);
  background: #ffffff;
  font-weight: 800;
}

.location-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.location-card,
.testimonial-card {
  padding: 22px;
  box-shadow: none;
}

.location-card {
  min-height: 700px;
}

.location-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.location-card h3,
.testimonial-card p {
  margin-top: 0;
}

.location-card p,
.testimonial-card p {
  color: var(--muted);
  line-height: 1.7;
}

.location-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 8px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--aqua);
  padding: 0 16px;
  font-weight: 800;
}

.reviews-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.reviews-panel__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.reviews-panel__header h2 {
  margin: 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  flex: 1;
}

.review-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fdfefe;
}

.review-card__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 12px;
}

.review-card__top strong {
  font-size: 1rem;
}

.review-card__top span {
  color: var(--gold);
  font-weight: 900;
}

.review-card__text {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
  line-clamp: 10;
  -webkit-line-clamp: 10; 
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card__text.is-expanded {
  display: block;
  line-clamp: unset;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.review-card__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--aqua-dark);
  background: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.review-card small {
  color: var(--muted);
}

.testimonial-card {
  display: grid;
  align-content: center;
  background: #ffffff;
}

.testimonial-card p {
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 700;
}

.testimonial-card strong {
  color: var(--aqua);
}

.site-footer {
  color: #dbe8ee;
  background: #0f2338;
  padding: 48px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 32px;
}

.brand--footer .brand__mark {
  background: var(--coral);
}

.brand--footer small,
.site-footer p {
  color: #aebdc9;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 1rem;
}

.site-footer a {
  display: block;
  margin-bottom: 10px;
}

@media (max-width: 920px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(17, 47, 72, 0.14);
    z-index: 30;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a,
  .nav-links img {
    width: 100%;
  }

  .nav-links__nabl-logo {
    display: none;
  }

  .quick-actions__grid,
  .service-grid,
  .package-grid,
  .department-layout,
  .about-band,
  .location-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-heading--split {
    display: block;
  }

  .package-tabs {
    margin-top: 22px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .location-card,
  .reviews-panel {
    height: 100%;
  }
  .nav-links__nabl-logo {
    display: block;             
    width: 70px; /* Scale it down slightly so it fits beautifully on smaller phone screens */
    height: auto;
    object-fit: contain;
    order: 2; /* Forces it to sit in the center slot */
  }

  /* 2. Control layout ordering of the navigation bar items */
  .navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .brand {
    order: 1; /* Brand logo stays on the left edge */
  }

  .menu-toggle {
    order: 3; /* Menu toggle button pushes to the right edge */
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, 1160px);
  }

  .top-strip__inner {
    justify-content: flex-start;
    gap: 10px 16px;
    padding: 8px 0;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 640px;
  }

  .hero__content {
    padding: 74px 0 112px;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero__stats,
  .appointment-form,
  .department-list {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    margin-top: -48px;
  }

  .section {
    padding: 68px 0;
  }

  .button,
  .nav-links__cta {
    width: 100%;
  }
}

.reviews-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.reviews-panel__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.reviews-panel__header h2 {
  margin: 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fdfefe;
}

.review-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.review-card__top strong {
  font-size: 1rem;
}

.review-card__top span {
  color: var(--gold);
  font-weight: 900;
}

.review-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.review-card small {
  color: var(--muted);
}

@media (max-width: 920px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}


/*Health Card Section*/
.section--health-card {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.health-card-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.health-card-image-wrapper {
  position: relative;
}

.health-card-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.health-card-img:hover {
  transform: translateY(-4px);
}

.health-card-content .section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 16px 0 24px;
}

.health-card-benefits {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.health-card-benefits li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  line-height: 1.6;
}

/* Custom bullet indicator matching the site's aqua theme */
.health-card-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--mint);
  font-weight: 900;
  font-size: 1.1rem;
}

.health-card-benefits strong {
  color: var(--navy);
}

@media (max-width: 920px) {
  .health-card-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .health-card-image-wrapper {
    order: 2;
  }
}

.section--team {
  background: #f4f9fb; 
  border-top: 1px solid var(--line);    /* <--- ADD THIS LINE */
  border-bottom: 1px solid var(--line); /* This one is already there */
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.doctor-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(17, 47, 72, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.doctor-card__image-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fdfefe;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.doctor-card__image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-card__image-container img {
  transform: scale(1.04);
}

.doctor-card__info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.doctor-card__info h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.doctor-card__degree {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.doctor-card__role {
  margin: auto 0 0; /* Pushes role text cleanly to the bottom if names wrap lines */
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Responsive breakdowns for smooth layouts on all devices */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}