*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #0F766E;
  --navy-dark: #0F766E;
  --white: #ffffff;
  --off-white: rgba(255, 255, 255, 0.55);
  --text-dark: #111111;
  --font: "Inter", sans-serif;
  --font-logo: "Poppins", sans-serif;
  --nav-h: 80px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: #ffffff;
  color: var(--text-dark);
  min-height: 100vh;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  background: var(--navy);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-logo);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.3s ease;
}
.nav-logo:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.nav-logo-img {
  width: 190px;
  height: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    color 0.3s ease;
  white-space: nowrap;
  display: inline-block;
}

.nav-link:not(.active) {
  opacity: 0.85;
}
.nav-link:hover {
  opacity: 1;
  transform: translateY(-2px);
  color: #ffffff;
}

.nav-link.active {
  font-weight: 700;
  color: #ffffff;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.03em;
  padding: 4px 0;
  white-space: nowrap;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.menu-toggle:hover {
  opacity: 0.75;
  transform: scale(1.05);
}

.mobile-nav-header {
  display: none;
}

.close-toggle {
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.03em;
  padding: 4px 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.close-toggle:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-inner {
    padding: 0 24px;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--navy);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;

    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 0.25s ease,
      transform 0.25s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }

  .mobile-nav-header {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    padding: 0 24px;
    align-items: center;
    justify-content: space-between;
  }

  .nav-link {
    font-size: 35px;
    font-weight: 700;
    color: var(--off-white);
    opacity: 1;
    transition:
      color 0.2s ease,
      transform 0.2s ease;
  }
  .nav-link:not(.active) {
    opacity: 1;
  }

  .nav-link.active {
    color: #ffffff;
  }

  .nav-link:hover {
    color: #ffffff;
    transform: scale(1.04);
    opacity: 1;
  }

  .nav-links.open .nav-link {
    animation: slideUp 0.35s ease both;
  }
  .nav-links.open .nav-link:nth-of-type(1) {
    animation-delay: 0.05s;
  }
  .nav-links.open .nav-link:nth-of-type(2) {
    animation-delay: 0.1s;
  }
  .nav-links.open .nav-link:nth-of-type(3) {
    animation-delay: 0.15s;
  }
  .nav-links.open .nav-link:nth-of-type(4) {
    animation-delay: 0.2s;
  }
  .nav-links.open .nav-link:nth-of-type(5) {
    animation-delay: 0.25s;
  }
}

@media (max-width: 480px) {
  .nav-link {
    font-size: 29px;
  }
}

.footer {
  background: var(--navy);
  width: 100%;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.footer--visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 64px 60px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 1.2fr;
  gap: 40px 32px;
  align-items: start;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-logo-img {
  width: 130px;
  height: auto;
  object-fit: contain;
  display: block;
}

.footer-tagline {
  font-size: 15px;
  line-height: 1.75;
  color: var(--off-white);
}

.footer-col-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.footer-nav ul,
.footer-quick ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-nav a,
.footer-quick a {
  font-size: 15px;
  color: var(--off-white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-quick a:hover {
  color: #ffffff;
}

.social-icons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.social-btn {
  display: block;
  text-decoration: none;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.social-btn:hover {
  transform: translateY(-3px);
}

.social-btn img {
  width: 48px;
  height: 48px;
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.252);
  padding: 20px 60px;
  max-width: 100%;
}

.footer-bottom p {
  max-width: 1280px;
  margin: 0 auto;
  font-size: 14px;
  color: var(--off-white);
}

@media (max-width: 960px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    padding: 48px 40px 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .footer-main {
    grid-template-columns: 1fr;
    padding: 40px 24px 32px;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1;
  }

  .footer-bottom {
    padding: 16px 24px;
    text-align: center;
  }

  .social-icons {
    gap: 12px;
  }
}

.gallery-section {
  width: 100%;
  padding: 100px 40px 80px;
  background: #ffffff;
}

.gallery-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

.gallery-intro h1 {
  margin-top: 25px;
  font-weight: 800;
  font-size: clamp(26px, 3vw, 34px);
  color: #111111;
  line-height: 1.15;
  margin-bottom: 18px;
}

.gallery-intro p {
  font-size: 15px;
  color: #555555;
  line-height: 1.75;
  max-width: 800px;
  margin: 0 auto;
  font-family: "Inter", sans-serif;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
}

.gallery-item {
  overflow: hidden;
  background: #e8e8e8;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 280px;
  transition: transform 0.4s ease;
  cursor: pointer;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

@media (max-width: 640px) {
  .gallery-section {
    padding: 88px 16px 60px;
  }

  .gallery-intro h1 {
    font-size: 1.8rem;
  }

  .gallery-grid {
    gap: 6px;
  }

  .gallery-item img {
    min-height: 160px;
  }
}

.clinical-card {
  position: relative;
}

.gallery-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: #0F766E;
  color: #ffffff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

/* Animations */
.scroll-reveal, .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.scroll-reveal.visible, .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { --d: 0.1s; transition-delay: var(--d); }
.delay-2 { --d: 0.2s; transition-delay: var(--d); }
.delay-3 { --d: 0.3s; transition-delay: var(--d); }
.delay-4 { --d: 0.4s; transition-delay: var(--d); }
.delay-5 { --d: 0.5s; transition-delay: var(--d); }

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
  color: #FFF;
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
  fill: #FFF;
  display: block;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-icon {
    width: 28px;
    height: 28px;
  }
}

